diff options
| author | Shida Zhang <zhangshida@kylinos.cn> | 2026-01-22 14:13:21 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-06 16:57:36 +0100 |
| commit | 7b72d76a58e6b7e3835fd681babef49a6b30daba (patch) | |
| tree | 084b7eb429829e29225d10e4302a66a3dd8612e3 /tools/perf/scripts/python | |
| parent | db6e287bd6e80d58367baf05bf05af45856b9c2d (diff) | |
| download | kernel-7b72d76a58e6b7e3835fd681babef49a6b30daba.tar.gz | |
bcache: use bio cloning for detached device requests
[ Upstream commit 3ef825dfd4e487d6f92b23ee2df2455814583ef4 ]
Previously, bcache hijacked the bi_end_io and bi_private fields of
the incoming bio when the backing device was in a detached state.
This is fragile and breaks if the bio is needed to be processed by
other layers.
This patch transitions to using a cloned bio embedded within a private
structure. This ensures the original bio's metadata remains untouched.
Fixes: 53280e398471 ("bcache: fix improper use of bi_end_io")
Co-developed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
Acked-by: Coly Li <colyli@fnnas.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 4da7c5c3ec34 ("bcache: fix I/O accounting leak in detached_dev_do_request")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
