]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bcache: Fix a dumb CPU spinning bug in writeback
authorKent Overstreet <kmo@daterainc.com>
Fri, 23 Aug 2013 22:12:21 +0000 (15:12 -0700)
committerKent Overstreet <kmo@daterainc.com>
Fri, 23 Aug 2013 23:30:22 +0000 (16:30 -0700)
schedule_timeout() != schedule_timeout_uninterruptible()

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
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);