Re: [PATCH 4/4] virtiofsd: Release vu_dispatch_lock when stopping queue

2021-03-09 Thread Stefan Hajnoczi
On Mon, Mar 08, 2021 at 01:31:41PM +0100, Greg Kurz wrote: > QEMU can stop a virtqueue by sending a VHOST_USER_GET_VRING_BASE request > to virtiofsd. As with all other vhost-user protocol messages, the thread > that runs the main event loop in virtiofsd takes the vu_dispatch lock in > write mode. T

Re: [PATCH 4/4] virtiofsd: Release vu_dispatch_lock when stopping queue

2021-03-09 Thread Vivek Goyal
On Mon, Mar 08, 2021 at 01:31:41PM +0100, Greg Kurz wrote: > QEMU can stop a virtqueue by sending a VHOST_USER_GET_VRING_BASE request > to virtiofsd. As with all other vhost-user protocol messages, the thread > that runs the main event loop in virtiofsd takes the vu_dispatch lock in > write mode. T

[PATCH 4/4] virtiofsd: Release vu_dispatch_lock when stopping queue

2021-03-08 Thread Greg Kurz
QEMU can stop a virtqueue by sending a VHOST_USER_GET_VRING_BASE request to virtiofsd. As with all other vhost-user protocol messages, the thread that runs the main event loop in virtiofsd takes the vu_dispatch lock in write mode. This ensures that no other thread can access virtqueues or memory ta