bcache: bch_gc_thread() is not freezable
authorJiri Kosina <jkosina@suse.cz>
Tue, 24 May 2016 14:38:34 +0000 (16:38 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 24 May 2016 15:00:45 +0000 (09:00 -0600)
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>
drivers/md/bcache/btree.c

index 22b9e34ceb75c5318a25870bf346a27ba2e64052..eab505ee002758c4a895732eb9e4e80a340ce556 100644 (file)
@@ -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();
        }