mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
bcache: fix improper use of bi_end_io
[ Upstream commit53280e3984] 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> Stable-dep-of:4da7c5c3ec("bcache: fix I/O accounting leak in detached_dev_do_request") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
815a8e3bf7
commit
39c607f892
1 changed files with 3 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue