Skip to content

Commit 2d06680

Browse files
joannekoongMiklos Szeredi
authored andcommitted
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>
1 parent 1dfe2a2 commit 2d06680

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/fuse/dev_uring.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ static struct fuse_ring *fuse_uring_create(struct fuse_conn *fc)
238238
ring->nr_queues = nr_queues;
239239
ring->fc = fc;
240240
ring->max_payload_sz = max_payload_size;
241-
atomic_set(&ring->queue_refs, 0);
242241
smp_store_release(&fc->ring, ring);
243242

244243
spin_unlock(&fc->lock);

0 commit comments

Comments
 (0)