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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Sep 2017 09:00:16 +0000 (11:00 +0200)
commit0471f58e18e60dcdbd89f882dc0fa6370b94cd48
tree07233f1b690c9942dc9a6864185b0a00e571ad73
parent093457f2bd329a2fdb253a68c4fffebb0e3d7786
bcache: do not subtract sectors_to_gc for bypassed IO

commit 69daf03adef5f7bc13e0ac86b4b8007df1767aab upstream.

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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/request.c