Commit 29e6c57c authored by Jiri Kosina's avatar Jiri Kosina Committed by Jens Axboe

bcache: bch_gc_thread() is not freezable

bch_gc_thread() doesn't mark itself freezable, so calling try_to_freeze()
in its context is just an expensive no-op.
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 770b8ce4
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/freezer.h>
#include <linux/hash.h> #include <linux/hash.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/prefetch.h> #include <linux/prefetch.h>
...@@ -1787,7 +1786,6 @@ static int bch_gc_thread(void *arg) ...@@ -1787,7 +1786,6 @@ static int bch_gc_thread(void *arg)
mutex_unlock(&c->bucket_lock); mutex_unlock(&c->bucket_lock);
try_to_freeze();
schedule(); schedule();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment