diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-10-24 20:19:26 -0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 00:56:04 -0500 |
commit | 72a44517f3ca3725dc86081d105457df46448679 (patch) | |
tree | 247b859af6c4377ab1ea90fd1fd4e64278ccdbbd /drivers/md/bcache/request.c | |
parent | 35fcd848d72683141052aa9880542461577f2dbe (diff) |
bcache: Convert gc to a kthread
We needed a dedicated rescuer workqueue for gc anyways... and gc was
conceptually a dedicated thread, just one that wasn't running all the
time. Switch it to a dedicated thread to make the code a bit more
straightforward.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 26d18f4bf4a0..f779eb420d69 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c | |||
@@ -520,7 +520,7 @@ static void bch_data_insert_start(struct closure *cl) | |||
520 | 520 | ||
521 | if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) { | 521 | if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) { |
522 | set_gc_sectors(op->c); | 522 | set_gc_sectors(op->c); |
523 | bch_queue_gc(op->c); | 523 | wake_up_gc(op->c); |
524 | } | 524 | } |
525 | 525 | ||
526 | /* | 526 | /* |