diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2016-10-27 05:31:17 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-12-17 21:01:55 +0100 |
commit | be628be09563f8f6e81929efbd7cf3f45c344416 (patch) | |
tree | df0521119df7e197d492413331f1ef4b76451404 /drivers/md/bcache/btree.h | |
parent | Merge tag 'ceph-for-4.10-rc1' of git://github.com/ceph/ceph-client (diff) | |
download | linux-be628be09563f8f6e81929efbd7cf3f45c344416.tar.xz linux-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.h | 3 |
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 |