浏览代码

sunrpc: use DEFINE_SPINLOCK()

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Fabian Frederick 8 年之前
父节点
当前提交
3eb15f2828
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      net/sunrpc/svcauth.c

+ 1 - 2
net/sunrpc/svcauth.c

@@ -124,8 +124,7 @@ EXPORT_SYMBOL_GPL(svc_auth_unregister);
 #define	DN_HASHMAX	(1<<DN_HASHBITS)
 #define	DN_HASHMAX	(1<<DN_HASHBITS)
 
 
 static struct hlist_head	auth_domain_table[DN_HASHMAX];
 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)
 void auth_domain_put(struct auth_domain *dom)
 {
 {