summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2016-05-24 16:38:34 +0200
committerJens Axboe <axboe@fb.com>2016-05-24 17:00:45 +0200
commit29e6c57cc78eb7cb8302088061a0721a41ade658 (patch)
treeabbd69fec10c4f30b31c97e390d66373ef28ea27
parentbcache: bch_allocator_thread() is not freezable (diff)
downloadlinux-29e6c57cc78eb7cb8302088061a0721a41ade658.tar.xz
linux-29e6c57cc78eb7cb8302088061a0721a41ade658.zip
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: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--drivers/md/bcache/btree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index 22b9e34ceb75..eab505ee0027 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -27,7 +27,6 @@
#include <linux/slab.h>
#include <linux/bitops.h>
-#include <linux/freezer.h>
#include <linux/hash.h>
#include <linux/kthread.h>
#include <linux/prefetch.h>
@@ -1787,7 +1786,6 @@ again:
mutex_unlock(&c->bucket_lock);
- try_to_freeze();
schedule();
}