public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted
@ 2010-02-05 20:09 Jeff Layton
  2010-02-08 21:19 ` J. Bruce Fields
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Layton @ 2010-02-05 20:09 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs

nsm_reboot_lookup takes a reference to the nsm_handle that it returns,
but nlm_host_rebooted never releases that reference.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
---
 fs/lockd/host.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 4600c20..bb464d1 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -479,8 +479,8 @@ again:	mutex_lock(&nlm_host_mutex);
 			}
 		}
 	}
-
 	mutex_unlock(&nlm_host_mutex);
+	nsm_release(nsm);
 }
 
 /*
-- 
1.6.6


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

* Re: [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted
  2010-02-05 20:09 [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted Jeff Layton
@ 2010-02-08 21:19 ` J. Bruce Fields
  2010-02-08 21:34   ` Jeff Layton
  0 siblings, 1 reply; 3+ messages in thread
From: J. Bruce Fields @ 2010-02-08 21:19 UTC (permalink / raw)
  To: Jeff Layton; +Cc: linux-nfs

On Fri, Feb 05, 2010 at 03:09:12PM -0500, Jeff Layton wrote:
> nsm_reboot_lookup takes a reference to the nsm_handle that it returns,
> but nlm_host_rebooted never releases that reference.

Makes sense to me; I'll apply to the nfsd tree.

(How did you run across this?)

--b.

> 
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
> ---
>  fs/lockd/host.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/lockd/host.c b/fs/lockd/host.c
> index 4600c20..bb464d1 100644
> --- a/fs/lockd/host.c
> +++ b/fs/lockd/host.c
> @@ -479,8 +479,8 @@ again:	mutex_lock(&nlm_host_mutex);
>  			}
>  		}
>  	}
> -
>  	mutex_unlock(&nlm_host_mutex);
> +	nsm_release(nsm);
>  }
>  
>  /*
> -- 
> 1.6.6
> 

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

* Re: [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted
  2010-02-08 21:19 ` J. Bruce Fields
@ 2010-02-08 21:34   ` Jeff Layton
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Layton @ 2010-02-08 21:34 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

On Mon, 8 Feb 2010 16:19:08 -0500
"J. Bruce Fields" <bfields@fieldses.org> wrote:

> On Fri, Feb 05, 2010 at 03:09:12PM -0500, Jeff Layton wrote:
> > nsm_reboot_lookup takes a reference to the nsm_handle that it returns,
> > but nlm_host_rebooted never releases that reference.
> 
> Makes sense to me; I'll apply to the nfsd tree.
> 
> (How did you run across this?)
> 
> --b.
> 

Thanks,

When I was testing Chuck's statd patches, I went through some rather
strange scenarios, mostly with Linux as the client. In some cases, we
noticed that an SM_UNMON would occur when umounting a NFS filesystem,
and in others it wouldn't. These two patches are the result of tracking
down the cause. With them in place, a SM_UNMON gets issued much more
consistently in the face of server reboots.

Cheers,
-- 
Jeff Layton <jlayton@redhat.com>

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

end of thread, other threads:[~2010-02-08 21:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 20:09 [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted Jeff Layton
2010-02-08 21:19 ` J. Bruce Fields
2010-02-08 21:34   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox