Skip to contentSkip to conversation

NLM failover - deadlock

PATCH In review Wendy Cheng 1 participant 1 message Aug 14, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 NLM failover - deadlock

There is an existing NLM deadlock bug that can be easily triggered by patch 5-1 (but the bug exists with and without this patch set). We include the temporary workaround here for reference purpose. The real fix has been worked on:

http://sourceforge.net/mailarchive/forum.php?
thread_id=30052343&forum_id=4930

fs/lockd/svclock.c +3 -1
@@ -264,7 +264,9 @@ static void nlmsvc_free_block(struct kre
 
 	nlmsvc_freegrantargs(block->b_call);
 	nlm_release_call(block->b_call);
-	nlm_release_file(block->b_file);
+	down(&file->f_sema);
+	file->f_count--;
+	up(&file->f_sema);
 	kfree(block);
 }
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs