]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] JFS: Fix race waking up jfsIO kernel thread
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Wed, 16 May 2007 03:53:36 +0000 (22:53 -0500)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:54 +0000 (14:32 -0700)
commit7fe23b5d8557c09a01d5a089878f25d52b5f1c05
treedb27ee0d5a5658f25c116335ae85646f28d1afda
parent81166863634472f5fcb45793e6676023d674f17c
[PATCH] JFS: Fix race waking up jfsIO kernel thread

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 <shaggy@linux.vnet.ibm.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
fs/jfs/jfs_logmgr.c