bcache: Fix a dumb CPU spinning bug in writeback
authorKent Overstreet <[email protected]>
Tue, 24 Sep 2013 06:17:33 +0000 (23:17 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 Sep 2013 21:41:43 +0000 (14:41 -0700)
schedule_timeout() != schedule_timeout_uninterruptible()

Signed-off-by: Kent Overstreet <[email protected]>
Cc: linux-stable <[email protected]> # >= v3.10
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/bcache/writeback.c

index 27ac51934822a81560c6850bf3ff66a0769a2486..ba3ee48320f2a38509adb2603f766c55e67f1da1 100644 (file)
@@ -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);