All of lore.kernel.org
 help / color / mirror / Atom feed
* [Virtio-fs] [PATCH 0/3] virtio-fs: Create a read-write mapping only if needed
@ 2019-07-24 21:07 Vivek Goyal
  2019-07-24 21:07 ` [Virtio-fs] [PATCH 1/3] fuse: Get rid of file parameter from setup mapping Vivek Goyal
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Vivek Goyal @ 2019-07-24 21:07 UTC (permalink / raw)
  To: virtio-fs

This should apply on top of.

https://gitlab.com/virtio-fs/linux/commits/virtio-fs-dev

Do not always create a read-write mapping. Create it read-write only if
caller asked for it. Otherwise create a read-only mapping and upgrade
it to read-write later when needed.

Vivek Goyal (3):
  fuse: Get rid of file parameter from setup mapping
  fuse: Move new mapping setup code in a function
  fuse: Add logic to upgrade a read-only mapping to read-write

 fs/fuse/file.c   | 246 +++++++++++++++++++++++++++++------------------
 fs/fuse/fuse_i.h |   3 +
 2 files changed, 155 insertions(+), 94 deletions(-)

-- 
2.17.2


^ permalink raw reply	[flat|nested] 15+ messages in thread
* [Virtio-fs] [PATCH 0/3][V2] virtio-fs: Create a read-write mapping only if needed
@ 2019-07-26 15:49 Vivek Goyal
  2019-07-26 15:49 ` [Virtio-fs] [PATCH 3/3] fuse: Add logic to upgrade a read-only mapping to read-write Vivek Goyal
  0 siblings, 1 reply; 15+ messages in thread
From: Vivek Goyal @ 2019-07-26 15:49 UTC (permalink / raw)
  To: virtio-fs

This is V2 of patches.

Changes since V1:

- Fixed the issue of dropping lock (liu bo)
- Mapping could already be made writable by another thread after
  dropping read lock and acquiring write-lock. So check for that. 

Do not always create a read-write mapping. Create it read-write only if
caller asked for it. Otherwise create a read-only mapping and upgrade
it to read-write later when needed.

Vivek Goyal (3):
  fuse: Get rid of file parameter from setup mapping
  fuse: Move new mapping setup code in a function
  fuse: Add logic to upgrade a read-only mapping to read-write

 fs/fuse/file.c   | 253 +++++++++++++++++++++++++++++------------------
 fs/fuse/fuse_i.h |   3 +
 2 files changed, 162 insertions(+), 94 deletions(-)

-- 
2.17.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-08-05 12:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-24 21:07 [Virtio-fs] [PATCH 0/3] virtio-fs: Create a read-write mapping only if needed Vivek Goyal
2019-07-24 21:07 ` [Virtio-fs] [PATCH 1/3] fuse: Get rid of file parameter from setup mapping Vivek Goyal
2019-07-26  1:23   ` Liu Bo
2019-07-24 21:07 ` [Virtio-fs] [PATCH 2/3] fuse: Move new mapping setup code in a function Vivek Goyal
2019-07-26  1:34   ` Liu Bo
2019-07-24 21:07 ` [Virtio-fs] [PATCH 3/3] fuse: Add logic to upgrade a read-only mapping to read-write Vivek Goyal
2019-07-25  0:08   ` Liu Bo
2019-07-25 15:35     ` Vivek Goyal
2019-07-25 19:32       ` Liu Bo
2019-07-25 20:30         ` Vivek Goyal
2019-07-25 21:57           ` Liu Bo
  -- strict thread matches above, loose matches on Subject: below --
2019-07-26 15:49 [Virtio-fs] [PATCH 0/3][V2] virtio-fs: Create a read-write mapping only if needed Vivek Goyal
2019-07-26 15:49 ` [Virtio-fs] [PATCH 3/3] fuse: Add logic to upgrade a read-only mapping to read-write Vivek Goyal
2019-08-04  1:56   ` piaojun
2019-08-05 12:25     ` Vivek Goyal
2019-08-05 12:34       ` piaojun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.