Skip to content

Commit

Permalink
[PATCH] nfsd to unlock kernel before exiting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Linus Torvalds committed Aug 17, 2005
1 parent dd12f48 commit c4f92db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ nfsd(struct svc_rqst *rqstp)
svc_exit_thread(rqstp);

/* Release module */
unlock_kernel();
module_put_and_exit(0);
}

Expand Down

0 comments on commit c4f92db

Please sign in to comment.