[PATCH 0/6] virtiofsd: Support for remote blocking posix locks

2021-06-16 Thread Ioannis Angelakopoulos
for a limited time while the custom threadpool services locking requests that might block. This is especially useful in the case where the GThreadPool is not utilized. Thanks, Ioannis Ioannis Angelakopoulos (2): virtiofsd: Thread state cleanup when blocking posix locks are used virtiofsd: Custom t

[PATCH 5/6] virtiofsd: Thread state cleanup when blocking posix locks are used

2021-06-16 Thread Ioannis Angelakopoulos
h the virtqueue. Then the cleanup process can proceed normally. Signed-off-by: Ioannis Angelakopoulos --- tools/virtiofsd/fuse_i.h | 1 + tools/virtiofsd/fuse_lowlevel.c | 2 ++ tools/virtiofsd/fuse_virtio.c| 10 ++ tools/virtiofsd/passthrough_ll.c | 23 +++--

[PATCH 1/6] virtiofsd: Release file locks using F_UNLCK

2021-06-16 Thread Ioannis Angelakopoulos
fcntl(SETLK, F_UNLCK) instead and plock will be freed later. Signed-off-by: Vivek Goyal Signed-off-by: Ioannis Angelakopoulos --- tools/virtiofsd/passthrough_ll.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/tools/virtiofsd/passthrough_

[PATCH 3/6] virtiofsd: Specify size of notification buffer using config space

2021-06-16 Thread Ioannis Angelakopoulos
From: Vivek Goyal Daemon specifies size of notification buffer needed and that should be done using config space. Only ->notify_buf_size value of config space comes from daemon. Rest of it is filled by qemu device emulation code. Signed-off-by: Vivek Goyal Signed-off-by: Ioan

[PATCH 6/6] virtiofsd: Custom threadpool for remote blocking posix locks requests

2021-06-16 Thread Ioannis Angelakopoulos
(--thread-pool-size=0), thus a locking request that blocks, will block the main virtqueue thread that services requests from servicing any other requests. Then virtiofsd proceeds to cleanup the state of the threads, release them back to the system and re-initialize. Signed-off-by: Ioannis

[PATCH 2/6] virtiofsd: Create a notification queue

2021-06-16 Thread Ioannis Angelakopoulos
From: Vivek Goyal Add a notification queue which will be used to send async notifications for file lock availability. Signed-off-by: Vivek Goyal Signed-off-by: Ioannis Angelakopoulos --- hw/virtio/vhost-user-fs.c | 30 ++-- include/hw/virtio/vhost-user-fs.h | 2

[PATCH 4/6] virtiofsd: Implement blocking posix locks

2021-06-16 Thread Ioannis Angelakopoulos
igned-off-by: Vivek Goyal Signed-off-by: Ioannis Angelakopoulos --- include/standard-headers/linux/fuse.h | 8 ++ tools/virtiofsd/fuse_lowlevel.c | 38 +- tools/virtiofsd/fuse_lowlevel.h | 26 +++ tools/virtiofsd/fuse_virtio.c | 101 --