]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72824b8932b066298256fbcf3a0d4b9c9db67e37
tree6b6b4c16b2c1ed560678914fc0bb2cd002f4fbd4
parentc7ee11ecb507271b7a8d36b90c9bea1148430d88
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: 52c74eabc1d2 ("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