summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2025-03-17 17:41:52 -0700
committerMiklos Szeredi <mszeredi@redhat.com>2025-03-31 14:59:27 +0200
commit2d066800a4276340a97acc75c148892eb6f8781a (patch)
tree5f2e3f82ea17440b1587dde8cd75f6e71ae65022
parent1dfe2a220e9cd85861a853b00d8620222b960c1f (diff)
fuse: remove unneeded atomic set in uring creation
When the ring is allocated, it is kzalloc-ed. ring->queue_refs will already be initialized to 0 by default. It does not need to be atomically set to 0. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Reviewed-by: Bernd Schubert <bschubert@ddn.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r--fs/fuse/dev_uring.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fuse/dev_uring.c b/fs/fuse/dev_uring.c
index e11786e92250..accdce2977c5 100644
--- a/fs/fuse/dev_uring.c
+++ b/fs/fuse/dev_uring.c
@@ -238,7 +238,6 @@ static struct fuse_ring *fuse_uring_create(struct fuse_conn *fc)
ring->nr_queues = nr_queues;
ring->fc = fc;
ring->max_payload_sz = max_payload_size;
- atomic_set(&ring->queue_refs, 0);
smp_store_release(&fc->ring, ring);
spin_unlock(&fc->lock);