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
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 +++--
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_
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
(--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
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
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 --