bcache: do not subtract sectors_to_gc for bypassed IO
authorTang Junhui <tang.junhui@zte.com.cn>
Wed, 6 Sep 2017 06:25:53 +0000 (14:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Sep 2017 14:17:33 +0000 (08:17 -0600)
commit69daf03adef5f7bc13e0ac86b4b8007df1767aab
treec54a3ffe7dd6fb9812c85328dc820dc4d261fa04
parentc81ffa32a214c84b08900fbc9d432187bd948eba
bcache: do not subtract sectors_to_gc for bypassed IO

Since bypassed IOs use no bucket, so do not subtract sectors_to_gc to
trigger gc thread.

Signed-off-by: tang.junhui <tang.junhui@zte.com.cn>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Eric Wheeler <bcache@linux.ewheeler.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c