]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcache: fix improper use of bi_end_io
authorShida Zhang <zhangshida@kylinos.cn>
Tue, 9 Dec 2025 09:01:56 +0000 (17:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Dec 2025 17:20:03 +0000 (10:20 -0700)
commit53280e398471f0bddbb17b798a63d41264651325
treed2b33cd82747321adb70ab18a4764188a2d9c482
parent87213b0d847cd300285b5545598e0548baeb5208
bcache: fix improper use of bi_end_io

Don't call bio->bi_end_io() directly. Use the bio_endio() helper
function instead, which handles completion more safely and uniformly.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c