* [PATCH 1/1 linux-next] sunrpc: use DEFINE_SPINLOCK()
@ 2016-12-04 12:45 Fabian Frederick
2016-12-06 19:19 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2016-12-04 12:45 UTC (permalink / raw)
To: bfields; +Cc: linux-nfs, linux-kernel, fabf
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1 linux-next] sunrpc: use DEFINE_SPINLOCK()
2016-12-04 12:45 [PATCH 1/1 linux-next] sunrpc: use DEFINE_SPINLOCK() Fabian Frederick
@ 2016-12-06 19:19 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2016-12-06 19:19 UTC (permalink / raw)
To: Fabian Frederick; +Cc: linux-nfs, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-06 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-04 12:45 [PATCH 1/1 linux-next] sunrpc: use DEFINE_SPINLOCK() Fabian Frederick
2016-12-06 19:19 ` J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).