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
..
2026-01-22 07:24:50 -07:00
2025-11-18 19:02:08 +01:00
2025-10-24 21:39:27 +02:00
2025-04-04 11:31:42 -07:00
2024-11-20 11:38:04 +01:00
2024-11-20 11:38:04 +01:00
2024-04-01 11:53:37 -06:00
2025-10-03 18:48:02 -07:00
2023-02-14 14:23:07 -05:00
2024-11-20 11:38:04 +01:00
2024-11-20 11:38:04 +01:00
2024-11-20 11:38:04 +01:00
2024-11-20 11:38:04 +01:00
2025-08-19 11:12:50 +02:00
2025-03-06 16:13:47 +01:00
2024-09-02 16:53:53 +02:00
2024-10-29 09:15:00 -06:00
2025-09-18 12:58:02 +02:00
2025-07-28 16:43:54 -07:00
2025-06-08 09:07:37 +02:00
2025-05-04 11:35:05 +02:00
2025-05-04 11:35:05 +02:00
2024-07-19 12:08:15 +02:00
2025-09-09 07:31:59 -06:00
2025-08-19 11:12:50 +02:00
2023-02-14 14:23:07 -05:00
2024-07-02 20:53:41 +02:00
2025-10-03 18:48:02 -07:00
2023-02-14 14:23:07 -05:00
2025-01-17 22:24:09 +01:00
2025-05-04 11:35:06 +02:00
2024-02-20 14:22:51 -05:00
2025-07-09 22:42:19 -07:00
2024-02-20 14:22:55 -05:00
2023-02-14 14:23:07 -05:00
2025-09-01 13:35:18 +02:00
2024-02-20 14:22:55 -05:00
2025-06-08 09:07:37 +02:00
2025-06-30 16:20:04 +02:00
2025-06-30 16:20:04 +02:00
2025-06-30 16:20:17 +02:00
2025-06-30 16:20:04 +02:00
2025-06-30 16:20:17 +02:00
2025-06-30 16:20:17 +02:00
2025-06-30 16:20:17 +02:00
2025-06-08 09:07:37 +02:00
2025-10-03 18:48:02 -07:00
2025-08-19 11:12:50 +02:00
2025-05-04 11:35:05 +02:00
2024-02-20 14:22:51 -05:00
2023-02-14 14:23:07 -05:00
2024-05-20 15:51:19 -04:00
2024-01-30 14:06:44 -05:00
2023-03-16 13:37:06 -04:00
2025-08-11 13:17:32 +02:00
2025-08-19 11:12:50 +02:00
2023-02-14 14:23:08 -05:00
2025-08-04 08:58:53 -07:00
2025-08-19 11:12:50 +02:00
2024-07-19 12:08:15 +02:00
2025-08-19 11:12:50 +02:00
2024-11-04 17:34:56 +01:00
2025-11-21 12:51:41 +01:00
2024-07-03 21:41:11 +02:00
2023-06-28 10:43:04 -07:00
2025-07-31 15:39:55 +02:00
2025-06-03 19:01:42 +02:00
2025-07-31 15:39:55 +02:00
2025-07-09 22:42:19 -07:00
2024-05-20 15:51:19 -04:00
2025-11-13 09:10:04 -07:00
2024-11-20 11:38:04 +01:00
2024-12-10 09:15:33 -07:00
2025-07-31 15:39:55 +02:00
2024-11-20 11:38:04 +01:00
2025-11-20 19:50:42 +01:00
2025-11-05 08:07:21 -07:00
2025-10-03 18:48:02 -07:00
2025-10-03 18:48:02 -07:00
2025-01-13 07:36:29 -08:00
2025-09-06 17:27:51 +08:00
2025-09-06 17:27:51 +08:00
2025-10-02 10:16:56 -07:00
2025-03-05 00:28:39 +08:00
2025-11-11 11:20:15 +08:00
2025-11-08 16:55:35 +08:00
2025-12-27 10:14:07 +08:00
2025-11-11 11:20:15 +08:00
2025-11-30 09:36:50 +08:00
2023-06-30 15:43:50 -07:00
2025-09-06 17:11:45 +08:00
2025-11-11 11:20:15 +08:00
2025-09-10 05:23:45 -06:00
2025-11-08 17:49:36 +08:00
2025-07-31 01:26:04 +08:00
2025-12-27 09:51:35 +08:00
2025-01-13 08:56:11 -08:00
2025-11-11 11:20:15 +08:00
2025-09-10 05:23:45 -06:00