linux/drivers
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
..
accel
accessibility
acpi
amba
android Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
ata
atm
auxdisplay
base
bcma
block ublk: fix ublksrv pid handling for pid namespaces 2026-01-21 07:46:14 -07:00
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
cxl
dax
dca
devfreq
dibs
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire
firmware
fpga
fsi
fwctl
gnss
gpio
gpu Kbuild updates for v6.19 2025-12-03 14:42:21 -08:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md bcache: use bio cloning for detached device requests 2026-01-22 07:24:50 -07:00
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
nfc
ntb
nubus
nvdimm
nvme nvme: fix PCIe subsystem reset controller state transition 2026-01-14 07:21:31 -08:00
nvmem
of
opp
parisc
parport
pci Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
pcmcia
peci
perf
phy
pinctrl
platform
pmdomain
pnp
power
powercap
pps
ps3
ptp Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
pwm
rapidio
ras
regulator
remoteproc
resctrl
reset
rpmsg
rtc
s390 for-6.19/block-20251201 2025-12-03 19:26:18 -08:00
sbus
scsi scsi: sd: reject invalid pr_read_keys() num_keys values 2025-12-04 07:19:26 -07:00
sh
siox
slimbus Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
soc
soundwire
spi
spmi
ssb
staging
target Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb
vdpa
vfio
vhost
video
virt
virtio
w1
watchdog
xen Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
zorro
Kconfig
Makefile