SUNRPC: Replace the cache_detail->hash_lock with a regular spinlock
authorTrond Myklebust <trondmy@gmail.com>
Mon, 1 Oct 2018 14:41:52 +0000 (10:41 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 29 Oct 2018 20:58:04 +0000 (16:58 -0400)
commit1863d77f15da0addcd293a1719fa5d3ef8cde3ca
tree992c15ae2c740f4422ba9e29653389c856c3986a
parentd48cf356a13073853f19be6ca5ebbecfc2762ebe
SUNRPC: Replace the cache_detail->hash_lock with a regular spinlock

Now that the reader functions are all RCU protected, use a regular
spinlock rather than a reader/writer lock.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/cache.h
net/sunrpc/cache.c