[pnfs] [PATCH] check that the owner is unlocking

Marc Eshel eshel at almaden.ibm.com
Thu May 15 18:26:49 EDT 2008


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);
 }


More information about the pNFS mailing list