patch-2.4.19 linux-2.4.19/fs/jbd/journal.c

Next file: linux-2.4.19/fs/jffs2/build.c
Previous file: linux-2.4.19/fs/iobuf.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/jbd/journal.c linux-2.4.19/fs/jbd/journal.c
@@ -204,6 +204,7 @@
 
 	lock_kernel();
 	daemonize();
+	reparent_to_init();
 	spin_lock_irq(&current->sigmask_lock);
 	sigfillset(&current->blocked);
 	recalc_sigpending(current);
@@ -267,6 +268,7 @@
 
 	journal->j_task = NULL;
 	wake_up(&journal->j_wait_done_commit);
+	unlock_kernel();
 	jbd_debug(1, "Journal thread exiting.\n");
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)