diff mbox

[1/1,linux-next] sunrpc: use DEFINE_SPINLOCK()

Message ID 1480855528-19620-1-git-send-email-fabf@skynet.be (mailing list archive)
State New, archived
Headers show

Commit Message

Fabian Frederick Dec. 4, 2016, 12:45 p.m. UTC
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 net/sunrpc/svcauth.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

J. Bruce Fields Dec. 6, 2016, 7:19 p.m. UTC | #1
Thanks, applying for 4.10.--b.

On Sun, Dec 04, 2016 at 01:45:28PM +0100, Fabian Frederick wrote:
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
>  net/sunrpc/svcauth.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c
> index 69841db..e112da8 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)
>  {
> -- 
> 2.7.4
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c
index 69841db..e112da8 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)
 {