mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
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>
This commit is contained in:
parent
7c87df9c15
commit
770b8ce400
1 changed files with 0 additions and 2 deletions
|
@ -64,7 +64,6 @@
|
||||||
#include "btree.h"
|
#include "btree.h"
|
||||||
|
|
||||||
#include <linux/blkdev.h>
|
#include <linux/blkdev.h>
|
||||||
#include <linux/freezer.h>
|
|
||||||
#include <linux/kthread.h>
|
#include <linux/kthread.h>
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
#include <trace/events/bcache.h>
|
#include <trace/events/bcache.h>
|
||||||
|
@ -288,7 +287,6 @@ do { \
|
||||||
if (kthread_should_stop()) \
|
if (kthread_should_stop()) \
|
||||||
return 0; \
|
return 0; \
|
||||||
\
|
\
|
||||||
try_to_freeze(); \
|
|
||||||
schedule(); \
|
schedule(); \
|
||||||
mutex_lock(&(ca)->set->bucket_lock); \
|
mutex_lock(&(ca)->set->bucket_lock); \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in a new issue