bcache: use disk_{start,end}_io_acct() to count I/O for bcache device
authorColy Li <colyli@suse.de>
Tue, 28 Jul 2020 13:59:20 +0000 (21:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jul 2020 15:14:52 +0000 (09:14 -0600)
commitc5be1f2c5bab1538aa29cd42e226d6b80391e3ff
tree6b6b4c16b2c1ed560678914fc0bb2cd002f4fbd4
parenta2f32ee8fd853cec8860f883d98afc3a339546de
bcache: use disk_{start,end}_io_acct() to count I/O for bcache device

This patch is a fix to patch "bcache: fix bio_{start,end}_io_acct with
proper device". The previous patch uses a hack to temporarily set
bi_disk to bcache device, which is mistaken too.

As Christoph suggests, this patch uses disk_{start,end}_io_acct() to
count I/O for bcache device in the correct way.

Fixes: 85750aeb748f ("bcache: use bio_{start,end}_io_acct")
Signed-off-by: Coly Li <colyli@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c