aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-10-26 23:31:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-23 11:44:36 -0500
commit8629aed2387cd22d1bde76e798034c3ea31018f7 (patch)
treea629d961401b51f22df42448cf04274d4651c897 /drivers/md/bcache/request.c
parent68214ad3926c7dd829e2f810b6af6fe7c76fd3da (diff)
bcache: Make gc wakeup sane, remove set_task_state()
commit be628be09563f8f6e81929efbd7cf3f45c344416 upstream. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Cc: Coly Li <colyli@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 40ffe5e424b3..a37c1776f2e3 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)
196 struct data_insert_op *op = container_of(cl, struct data_insert_op, cl); 196 struct data_insert_op *op = container_of(cl, struct data_insert_op, cl);
197 struct bio *bio = op->bio, *n; 197 struct bio *bio = op->bio, *n;
198 198
199 if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) { 199 if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0)
200 set_gc_sectors(op->c);
201 wake_up_gc(op->c); 200 wake_up_gc(op->c);
202 }
203 201
204 if (op->bypass) 202 if (op->bypass)
205 return bch_data_invalidate(cl); 203 return bch_data_invalidate(cl);