diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2016-10-27 06:31:17 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-12-17 23:01:55 +0300 |
commit | be628be09563f8f6e81929efbd7cf3f45c344416 (patch) | |
tree | df0521119df7e197d492413331f1ef4b76451404 /drivers/md/bcache/bcache.h | |
parent | 59331c215daf600a650e281b6e8ef3e1ed1174c2 (diff) | |
download | linux-be628be09563f8f6e81929efbd7cf3f45c344416.tar.xz |
bcache: Make gc wakeup sane, remove set_task_state()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r-- | drivers/md/bcache/bcache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 6b420a55c745..c3ea03c9a1a8 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -425,7 +425,7 @@ struct cache { * until a gc finishes - otherwise we could pointlessly burn a ton of * cpu */ - unsigned invalidate_needs_gc:1; + unsigned invalidate_needs_gc; bool discard; /* Get rid of? */ @@ -593,8 +593,8 @@ struct cache_set { /* Counts how many sectors bio_insert has added to the cache */ atomic_t sectors_to_gc; + wait_queue_head_t gc_wait; - wait_queue_head_t moving_gc_wait; struct keybuf moving_gc_keys; /* Number of moving GC bios in flight */ struct semaphore moving_in_flight; |