]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/md/bcache/writeback.c
bcache: Fix a dumb CPU spinning bug in writeback
[mirror_ubuntu-artful-kernel.git] / 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);