aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/btree.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-10-26 20:31:17 -0700
committerJens Axboe <axboe@fb.com>2016-12-17 13:01:55 -0700
commitbe628be09563f8f6e81929efbd7cf3f45c344416 (patch)
treedf0521119df7e197d492413331f1ef4b76451404 /drivers/md/bcache/btree.h
parentMerge tag 'ceph-for-4.10-rc1' of git://github.com/ceph/ceph-client (diff)
downloadlinux-dev-be628be09563f8f6e81929efbd7cf3f45c344416.tar.xz
linux-dev-be628be09563f8f6e81929efbd7cf3f45c344416.zip
bcache: Make gc wakeup sane, remove set_task_state()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'drivers/md/bcache/btree.h')
-rw-r--r--drivers/md/bcache/btree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/bcache/btree.h b/drivers/md/bcache/btree.h
index 5c391fa01bed..9b80417cd547 100644
--- a/drivers/md/bcache/btree.h
+++ b/drivers/md/bcache/btree.h
@@ -260,8 +260,7 @@ void bch_initial_mark_key(struct cache_set *, int, struct bkey *);
static inline void wake_up_gc(struct cache_set *c)
{
- if (c->gc_thread)
- wake_up_process(c->gc_thread);
+ wake_up(&c->gc_wait);
}
#define MAP_DONE 0