Skip to contentSkip to conversation

kNFSd - 1 of 6 - Lock client list while detaching locks

PATCH New NeilBrown 1 participant 1 message Sep 4, 2003

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 kNFSd - 1 of 6 - Lock client list while detaching locks

From: Mark Hemment <[email protected]>

The 'client' list should always be protected by the export table lock, but it isn't here!

fs/nfsd/export.c renamed from fs/nfsd/export.c~current~ +2 -0
diff ./fs/nfsd/export.c~current~ ./fs/nfsd/export.c
@@ -903,8 +903,10 @@ exp_nlmdetach(void)
 {
 	struct svc_client	*clp;
 
+	exp_readlock();
 	for (clp = clients; clp; clp = clp->cl_next)
 		nfsd_lockd_unexport(clp);
+	exp_unlock();
 }
 
 /*

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs