]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fuse: remove unneeded atomic set in uring creation
authorJoanne Koong <joannelkoong@gmail.com>
Tue, 18 Mar 2025 00:41:52 +0000 (17:41 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 31 Mar 2025 12:59:27 +0000 (14:59 +0200)
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>
fs/fuse/dev_uring.c

index e11786e92250190863c73242f34aa2aa0921f0a1..accdce2977c50d4a701824fdb66966a681695a23 100644 (file)
@@ -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);