Tang Junhui 0b43f49dc4 bcache: gc does not work when triggering by manual command
I try to execute the following command to trigger gc thread:
[root@localhost internal]# echo 1 > trigger_gc
But it does not work, I debug the code in gc_should_run(), It works only
if in invalidating or sectors_to_gc < 0. So set sectors_to_gc to -1 to
meet the condition when we trigger gc by manual command.

(Code comments aded by Coly Li)

Signed-off-by: Tang Junhui <tang.junhui@zte.com.cn>
Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-09-06 08:17:33 -06:00
..
2016-11-01 09:43:26 -06:00
2017-07-25 14:54:20 -04:00
2017-05-08 17:15:12 -07:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2017-08-28 13:00:44 -06:00
2017-08-28 13:00:44 -06:00