]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
virtio_fs: Remove redundant spinlock in virtio_fs_request_complete()
authorLi RongQing <lirongqing@baidu.com>
Sun, 15 Jun 2025 13:20:39 +0000 (21:20 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 27 Aug 2025 12:29:43 +0000 (14:29 +0200)
commitb4da63cea158f050865220a05ab691cfe8fb6450
tree6598009d3e2e88813cb2bd04907792a4e50aad46
parent6fd26f50857698c6f07a9e6b149247925fadb8fd
virtio_fs: Remove redundant spinlock in virtio_fs_request_complete()

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@baidu.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/virtio_fs.c