summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-09-24 08:17:33 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-24 23:41:43 +0200
commit79e3dab90d9f826ceca67c7890e048ac9169de49 (patch)
treeaa3b27dad6f09cb32faa8c23ad3a3ca661a5ffae /drivers/md
parentbcache: Fix a flush/fua performance bug (diff)
downloadlinux-79e3dab90d9f826ceca67c7890e048ac9169de49.tar.xz
linux-79e3dab90d9f826ceca67c7890e048ac9169de49.zip
bcache: Fix a dumb CPU spinning bug in writeback
schedule_timeout() != schedule_timeout_uninterruptible() Signed-off-by: Kent Overstreet <kmo@daterainc.com> Cc: linux-stable <stable@vger.kernel.org> # >= v3.10 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/writeback.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c
index 27ac51934822..ba3ee48320f2 100644
--- a/drivers/md/bcache/writeback.c
+++ b/drivers/md/bcache/writeback.c
@@ -397,8 +397,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);