From: Kent Overstreet Date: Fri, 23 Aug 2013 22:12:21 +0000 (-0700) Subject: bcache: Fix a dumb CPU spinning bug in writeback X-Git-Tag: next-20130912~34^2~6^2~52 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=174c1412939888ffedc4da02b375bc579af2a93c;p=karo-tx-linux.git bcache: Fix a dumb CPU spinning bug in writeback schedule_timeout() != schedule_timeout_uninterruptible() Signed-off-by: Kent Overstreet Cc: linux-stable # >= v3.10 --- 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);