JFFS: drop kernel lock on exit from garbage collecting thread
PATCH 1/1 JFFS: drop kernel lock on exit from garbage collecting thread
Hello.
JFFS forgets to drop a kernel lock it grabs in the garbage collecting
thread when that thread is killed by jffs_put_user(). This causes a couple of BUG messages and a call trace to be printed out on unmounting JFFS with the alternate spinlock implemetation which checks for the kernel lock state consistency...
WBR, Sergei
Signed-off-by Konstantin Baidarov <[email protected]>
Signed-off-by Sergei Shtylyov <[email protected]>
Index: fs/jffs/intrep.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs/intrep.c,v
retrieving revision 1.105
jffs/intrep.c +1 -0
@@ -3442,6 +3442,7 @@ jffs_garbage_collect_thread(void *ptr)case SIGKILL :D1 (printk ("jffs_garbage_collect_thread(): SIGKILL received.\n" )); c->gc_task =NULL ; +unlock_kernel ();complete_and_exit (&c->gc_thread_comp,0 ); } }