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/request.c | |
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/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index f49c5417527d..76d20875503c 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -196,10 +196,8 @@ static void bch_data_insert_start(struct closure *cl) struct data_insert_op *op = container_of(cl, struct data_insert_op, cl); struct bio *bio = op->bio, *n; - if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) { - set_gc_sectors(op->c); + if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) wake_up_gc(op->c); - } if (op->bypass) return bch_data_invalidate(cl); |