Messages in this thread Patches in this message | | | Date | Thu, 4 Apr 2002 16:55:35 -0600 (GMT+6) | From | "Ishan O. Jayawardena" <> | Subject | Re: [patch] kjournald locking fix |
| |
Greetings everyone,
Here's an improved version of my previous patch. Thanks to Andrew Morton for the advice. 2.5 needs this too I think, since preemption is part of it now...
Ishan O. Jayawardena
----------------------------------------------------------------
--- linux-preempt/fs/jbd/journal.c.1 Wed Apr 3 08:05:08 2002 +++ linux-preempt/fs/jbd/journal.c Thu Apr 4 16:41:56 2002 @@ -204,6 +204,7 @@ int kjournald(void *arg) lock_kernel(); daemonize(); + reparent_to_init(); spin_lock_irq(¤t->sigmask_lock); sigfillset(¤t->blocked); recalc_sigpending(current); @@ -267,6 +268,7 @@ int kjournald(void *arg) journal->j_task = NULL; wake_up(&journal->j_wait_done_commit); + unlock_kernel(); jbd_debug(1, "Journal thread exiting.\n"); return 0; }--- linux-preempt/fs/jbd/journal.c.1 Wed Apr 3 08:05:08 2002 +++ linux-preempt/fs/jbd/journal.c Thu Apr 4 16:41:56 2002 @@ -204,6 +204,7 @@ int kjournald(void *arg) lock_kernel(); daemonize(); + reparent_to_init(); spin_lock_irq(¤t->sigmask_lock); sigfillset(¤t->blocked); recalc_sigpending(current); @@ -267,6 +268,7 @@ int kjournald(void *arg) journal->j_task = NULL; wake_up(&journal->j_wait_done_commit); + unlock_kernel(); jbd_debug(1, "Journal thread exiting.\n"); return 0; } | |