From: Steven Rostedt Date: Wed, 17 Aug 2005 18:25:23 +0000 (-0400) Subject: [PATCH] nfsd to unlock kernel before exiting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4f92dba97f4e3aa757500896f87001569f4604b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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: Steven Rostedt Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 07b9a065e9d..1697539a717 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -287,6 +287,7 @@ out: svc_exit_thread(rqstp); /* Release module */ + unlock_kernel(); module_put_and_exit(0); }