Re: [PATCH][v2] virtio_fs: Remove redundant spinlock in virtio_fs_request_complete()

From: Stefan Hajnoczi
Date: Sun Jun 15 2025 - 09:29:36 EST


On Sun, Jun 15, 2025 at 9:21 AM lirongqing <lirongqing@xxxxxxxxx> wrote:
>
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> Since clear_bit is an atomic operation, the spinlock is redundant and
> can be removed, reducing lock contention is good for performance.
>
> Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
> ---
> Diff with v1: remove unused variable "fpq"
>
> fs/fuse/virtio_fs.c | 3 ---
> 1 file changed, 3 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>