linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NFS: Fix up a typo in nfs_dns_ent_put
@ 2018-10-05 14:27 Trond Myklebust
  2018-10-08 14:23 ` J Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Trond Myklebust @ 2018-10-05 14:27 UTC (permalink / raw)
  To: J Bruce Fields; +Cc: linux-nfs

call_rcu() needs to take a first argument of type (struct rcu_head *).

Fixes: fd497f1e40d9 ("NFS: Lockless DNS lookups")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
---
- Apologies for the screwup

 fs/nfs/dns_resolve.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c
index e93a5dc07c8c..a7d3df85736d 100644
--- a/fs/nfs/dns_resolve.c
+++ b/fs/nfs/dns_resolve.c
@@ -116,7 +116,7 @@ static void nfs_dns_ent_put(struct kref *ref)
 	struct nfs_dns_ent *item;
 
 	item = container_of(ref, struct nfs_dns_ent, h.ref);
-	call_rcu(item, nfs_dns_ent_free_rcu);
+	call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu);
 }
 
 static struct cache_head *nfs_dns_ent_alloc(void)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] NFS: Fix up a typo in nfs_dns_ent_put
  2018-10-05 14:27 [PATCH] NFS: Fix up a typo in nfs_dns_ent_put Trond Myklebust
@ 2018-10-08 14:23 ` J Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J Bruce Fields @ 2018-10-08 14:23 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs

On Fri, Oct 05, 2018 at 10:27:20AM -0400, Trond Myklebust wrote:
> call_rcu() needs to take a first argument of type (struct rcu_head *).
> 
> Fixes: fd497f1e40d9 ("NFS: Lockless DNS lookups")
> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>

Thanks!  Applying.--b.

> ---
> - Apologies for the screwup
> 
>  fs/nfs/dns_resolve.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c
> index e93a5dc07c8c..a7d3df85736d 100644
> --- a/fs/nfs/dns_resolve.c
> +++ b/fs/nfs/dns_resolve.c
> @@ -116,7 +116,7 @@ static void nfs_dns_ent_put(struct kref *ref)
>  	struct nfs_dns_ent *item;
>  
>  	item = container_of(ref, struct nfs_dns_ent, h.ref);
> -	call_rcu(item, nfs_dns_ent_free_rcu);
> +	call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu);
>  }
>  
>  static struct cache_head *nfs_dns_ent_alloc(void)
> -- 
> 2.17.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-08 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05 14:27 [PATCH] NFS: Fix up a typo in nfs_dns_ent_put Trond Myklebust
2018-10-08 14:23 ` 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).