Skip to content
Commit ef4d3ea4 authored by Marc Dionne's avatar Marc Dionne Committed by Linus Torvalds
Browse files

afs: Fix server->active leak in afs_put_server



The atomic_read was accidentally replaced with atomic_inc_return,
which prevents the server from getting cleaned up and causes rmmod
to hang with a warning:

    Can't purge s=00000001

Fixes: 2757a4dc ("afs: Fix access after dec in put functions")
Signed-off-by: default avatarMarc Dionne <marc.dionne@auristor.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20221130174053.2665818-1-marc.dionne@auristor.com/


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 04aa6437
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment