diff options
| author | Shida Zhang <zhangshida@kylinos.cn> | 2026-01-22 14:13:21 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-01-22 07:24:50 -0700 |
| commit | 3ef825dfd4e487d6f92b23ee2df2455814583ef4 (patch) | |
| tree | b62810459fe6f4db4dda68dcefe83b099354438f /tools/perf/lib/include | |
| parent | 046be7e5967ef80547f7fd8a399e932f5338d5d4 (diff) | |
bcache: use bio cloning for detached device requests
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>
Diffstat (limited to 'tools/perf/lib/include')
0 files changed, 0 insertions, 0 deletions
