diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-11-28 20:28:37 -0500 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-12-16 17:04:57 -0500 |
commit | ce2b3f595e1c56639085645e0130426e443008c0 (patch) | |
tree | 1f219c24b5dc45c705a646f9e3432b295f3c802f /drivers/md | |
parent | f665c0f852316ff99e9eb7f71f34d43003f8e139 (diff) |
bcache: Use uninterruptible sleep in writeback
We're just waiting on kthread_should_stop(), nothing else, so
interruptible sleep was wrong here.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bcache/writeback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c index 484e57d7012c..3cd931d3f26c 100644 --- a/drivers/md/bcache/writeback.c +++ b/drivers/md/bcache/writeback.c | |||
@@ -241,7 +241,7 @@ static void read_dirty(struct cached_dev *dc) | |||
241 | if (KEY_START(&w->key) != dc->last_read || | 241 | if (KEY_START(&w->key) != dc->last_read || |
242 | jiffies_to_msecs(delay) > 50) | 242 | jiffies_to_msecs(delay) > 50) |
243 | while (!kthread_should_stop() && delay) | 243 | while (!kthread_should_stop() && delay) |
244 | delay = schedule_timeout_interruptible(delay); | 244 | delay = schedule_timeout_uninterruptible(delay); |
245 | 245 | ||
246 | dc->last_read = KEY_OFFSET(&w->key); | 246 | dc->last_read = KEY_OFFSET(&w->key); |
247 | 247 | ||
@@ -438,7 +438,7 @@ static int bch_writeback_thread(void *arg) | |||
438 | while (delay && | 438 | while (delay && |
439 | !kthread_should_stop() && | 439 | !kthread_should_stop() && |
440 | !test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags)) | 440 | !test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags)) |
441 | delay = schedule_timeout_interruptible(delay); | 441 | delay = schedule_timeout_uninterruptible(delay); |
442 | } | 442 | } |
443 | } | 443 | } |
444 | 444 | ||