[pnfs] [PATCH] check that the owner is unlocking
J. Bruce Fields
bfields at fieldses.org
Fri May 16 10:35:14 EDT 2008
On Thu, May 15, 2008 at 03:26:49PM -0700, Marc Eshel wrote:
> From: Marc Eshel <eshel at almaden.ibm.com>
>
>
> ---
>
> fs/nfsd/nfs4state.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 20a4b8e..b75a863 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -134,6 +134,7 @@ nfs4_lock_state(void)
> void
> nfs4_unlock_state(void)
> {
> + BUG_ON(client_mutex_owner != current_thread_info());
> client_mutex_owner = NULL;
> mutex_unlock(&client_mutex);
The mutex code should already check for this.
--b.
> }
> _______________________________________________
> pNFS mailing list
> pNFS at linux-nfs.org
> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs
More information about the pNFS
mailing list