]> err.no Git - linux-2.6/commitdiff
[PATCH] nfsd to unlock kernel before exiting
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 17 Aug 2005 18:25:23 +0000 (14:25 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 17 Aug 2005 19:53:05 +0000 (12:53 -0700)
The nfsd holds the big kernel lock upon exit, when it really shouldn't.
Not to mention that this breaks Ingo's RT patch. This is a trivial fix
to release the lock.

Ingo, this patch also works with your kernel, and stops the problem with
nfsd.

Note, there's a "goto out;" where "out:" is right above svc_exit_thread.
The point of the goto also holds the kernel_lock, so I don't see any
problem here in releasing it.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfssvc.c

index 07b9a065e9daa75ebb35fcff48e5f441376cc6f8..1697539a7171777815cf6e54bd7738e3e3fdacde 100644 (file)
@@ -287,6 +287,7 @@ out:
        svc_exit_thread(rqstp);
 
        /* Release module */
+       unlock_kernel();
        module_put_and_exit(0);
 }