Files
linux/drivers/md
Shida Zhang 3ef825dfd4 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: 53280e3984 ("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>
2026-01-22 07:24:50 -07:00
..
2025-10-24 21:39:27 +02:00
2024-04-01 11:53:37 -06:00
2025-08-19 11:12:50 +02:00
2023-02-14 14:23:07 -05:00
2024-02-20 14:22:51 -05:00
2025-09-01 13:35:18 +02:00
2024-11-20 11:38:04 +01:00
2025-11-05 08:07:21 -07:00
2025-01-13 07:36:29 -08:00
2025-11-11 11:20:15 +08:00