[lkml]   [2007]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch 64/69] JFS: Fix race waking up jfsIO kernel thread
-stable review patch.  If anyone has any objections, please let us know.

From: Dave Kleikamp <>

It's possible for a journal I/O request to be added to the log_redrive
queue and the jfsIO thread to be awakened after the thread releases
log_redrive_lock but before it sets its state to TASK_INTERRUPTIBLE.

The jfsIO thread should set the state before giving up the spinlock, so
the waking thread will really wake it.

Signed-off-by: Dave Kleikamp <>
Signed-off-by: Chris Wright <>
fs/jfs/jfs_logmgr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-
+++ linux-
@@ -2354,12 +2354,13 @@ int jfsIOWait(void *arg)
- spin_unlock_irq(&log_redrive_lock);

if (freezing(current)) {
+ spin_unlock_irq(&log_redrive_lock);
} else {
+ spin_unlock_irq(&log_redrive_lock);
current->state = TASK_RUNNING;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-05-21 21:43    [W:0.281 / U:1.532 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site