]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcache: fix I/O accounting leak in detached_dev_do_request
authorShida Zhang <zhangshida@kylinos.cn>
Tue, 27 Jan 2026 08:21:12 +0000 (16:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Jan 2026 02:06:55 +0000 (19:06 -0700)
commit4da7c5c3ec34d839bba6e035c3d05c447a2f9d4f
tree751b23f223f199e8d335b96f66fecf6ce149780b
parent6ea84d7a92cb0b30aaf7d2066a69e28e27932332
bcache: fix I/O accounting leak in detached_dev_do_request

When a bcache device is detached, discard requests are completed
immediately. However, the I/O accounting started in
cached_dev_make_request() is not ended, leading to 100% disk
utilization reports in iostat. Add the missing bio_end_io_acct() call.

Fixes: cafe56359144 ("bcache: A block layer cache")
Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
Acked-by: Coly Li <colyli@fnnas.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c