SUNRPC: Remove rpc_authflavor_lock in favour of RCU locking
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 27 Sep 2018 17:12:44 +0000 (13:12 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:17 +0000 (15:35 -0400)
commit4e4c3bef4471c8a06406abd2e3d9493e8478feff
tree1d1a2a56b701a76caa61545969f08cdbe2d5af61
parent1c6c4b740df12f2162ae5c3fac337137e2776236
SUNRPC: Remove rpc_authflavor_lock in favour of RCU locking

Module removal is RCU safe by design, so we really have no need to
lock the auth_flavors[] array. Substitute a lockless scheme to
add/remove entries in the array, and then use rcu.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/auth.c