mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
bcache: Fix a dumb CPU spinning bug in writeback
commit 79e3dab90d upstream.
schedule_timeout() != schedule_timeout_uninterruptible()
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
77dbabefd6
commit
ff1a51b9bf
@@ -327,8 +327,7 @@ static void read_dirty(struct closure *cl)
|
||||
if (delay > 0 &&
|
||||
(KEY_START(&w->key) != dc->last_read ||
|
||||
jiffies_to_msecs(delay) > 50))
|
||||
while (delay)
|
||||
delay = schedule_timeout(delay);
|
||||
delay = schedule_timeout_uninterruptible(delay);
|
||||
|
||||
dc->last_read = KEY_OFFSET(&w->key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user