diff options
author | Fabian Frederick <fabf@skynet.be> | 2016-12-04 13:45:28 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-12-06 20:18:30 +0100 |
commit | 3eb15f2828464791f68b341ce87183012c509fc6 (patch) | |
tree | 6532e24ce50398fd1b79a65e12e645bef5e9610a /net | |
parent | svcrdma: Further clean-up of svc_rdma_get_inv_rkey() (diff) | |
download | linux-3eb15f2828464791f68b341ce87183012c509fc6.tar.xz linux-3eb15f2828464791f68b341ce87183012c509fc6.zip |
sunrpc: use DEFINE_SPINLOCK()
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/svcauth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c index 69841db1f533..e112da8005b5 100644 --- a/net/sunrpc/svcauth.c +++ b/net/sunrpc/svcauth.c @@ -124,8 +124,7 @@ EXPORT_SYMBOL_GPL(svc_auth_unregister); #define DN_HASHMAX (1<<DN_HASHBITS) static struct hlist_head auth_domain_table[DN_HASHMAX]; -static spinlock_t auth_domain_lock = - __SPIN_LOCK_UNLOCKED(auth_domain_lock); +static DEFINE_SPINLOCK(auth_domain_lock); void auth_domain_put(struct auth_domain *dom) { |