Commit c4f92dba authored by Steven Rostedt's avatar Steven Rostedt Committed by Linus Torvalds

[PATCH] nfsd to unlock kernel before exiting

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: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dd12f48d
...@@ -287,6 +287,7 @@ nfsd(struct svc_rqst *rqstp) ...@@ -287,6 +287,7 @@ nfsd(struct svc_rqst *rqstp)
svc_exit_thread(rqstp); svc_exit_thread(rqstp);
/* Release module */ /* Release module */
unlock_kernel();
module_put_and_exit(0); module_put_and_exit(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment