Skip to content

Virtiofs: Support for remote blocking posix locks

Ioannis Angelakopoulos linux-fsdevel virtio-fs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtiofs: Add an index to keep track of first request queuefs/fuse/virtio_fs.c+16 -62 replies
2/3virtiofs: Add a virtqueue for notificationsfs/fuse/virtio_fs.c include/uapi/linux/virtio_fs.h+193 -110 replies
3/3virtiofs: Support blocking posix locks (fcntl(F_SETLKW))fs/fuse/virtio_fs.c include/uapi/linux/fuse.h+82 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Virtiofs: Support for remote blocking posix locks

Adding support for remote blocking locks in virtiofs. Initially linux only supported the fcntl(SETLK) option. Now the fcntl(SETLKW) option is also supported.

A guest issuing a fcntl(SETLKW) system call will block if another guest has already acquired the lock. Once the lock is available then the blocking guest will receive a notification, through the notification queue. Then the guest will unblock and acquire the lock.

Vivek Goyal (3):
virtiofs: Add an index to keep track of first request queue
virtiofs: Add a virtqueue for notifications
virtiofs: Support blocking posix locks (fcntl(F_SETLKW))

 fs/fuse/virtio_fs.c            | 290 +++++++++++++++++++++++++++++++--
 include/uapi/linux/fuse.h      |   7 +
 include/uapi/linux/virtio_fs.h |   5 +
 3 files changed, 288 insertions(+), 14 deletions(-)
Signature · 1 line
2.27.0