diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2016-05-24 10:38:15 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@fb.com> | 2016-05-24 11:00:43 -0400 |
| commit | 770b8ce400123af89ac469361d7912f458915547 (patch) | |
| tree | d331f0f38720f1cab43cfab7ca954a8146ca9ed2 | |
| parent | 7c87df9c159aa1d228f0d77b37942216cff34922 (diff) | |
bcache: bch_allocator_thread() is not freezable
bch_allocator_thread() is calling try_to_freeze(), but that's just an
expensive no-op given the fact that the thread is not marked freezable.
Bucket allocator has to be up and running to the very last stages of the
suspend, as the bcache I/O that's in flight (think of writing an
hibernation image to a swap device served by bcache).
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
| -rw-r--r-- | drivers/md/bcache/alloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c index 8eeab72b93e2..ca4abe1ccd8d 100644 --- a/drivers/md/bcache/alloc.c +++ b/drivers/md/bcache/alloc.c | |||
| @@ -64,7 +64,6 @@ | |||
| 64 | #include "btree.h" | 64 | #include "btree.h" |
| 65 | 65 | ||
| 66 | #include <linux/blkdev.h> | 66 | #include <linux/blkdev.h> |
| 67 | #include <linux/freezer.h> | ||
| 68 | #include <linux/kthread.h> | 67 | #include <linux/kthread.h> |
| 69 | #include <linux/random.h> | 68 | #include <linux/random.h> |
| 70 | #include <trace/events/bcache.h> | 69 | #include <trace/events/bcache.h> |
| @@ -288,7 +287,6 @@ do { \ | |||
| 288 | if (kthread_should_stop()) \ | 287 | if (kthread_should_stop()) \ |
| 289 | return 0; \ | 288 | return 0; \ |
| 290 | \ | 289 | \ |
| 291 | try_to_freeze(); \ | ||
| 292 | schedule(); \ | 290 | schedule(); \ |
| 293 | mutex_lock(&(ca)->set->bucket_lock); \ | 291 | mutex_lock(&(ca)->set->bucket_lock); \ |
| 294 | } \ | 292 | } \ |
