summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorChen Cheng <chencheng@fnnas.com>2026-05-15 17:30:19 +0800
committerYu Kuai <yukuai@fygo.io>2026-05-31 19:09:17 +0800
commit6b8a26af065ddc93de2aa5c9f0df98dce9723442 (patch)
tree2a6f259d5231d853548b1e3f5ec8f5641c7d94e1 /include/linux/timerqueue.h
parentabaf4783822851678632e5cea98aa5aead99852f (diff)
md/raid10: reset read_slot when reusing r10bio for discard
put_all_bios() always drops devs[i].bio, but it only drops devs[i].repl_bio when r10_bio->read_slot < 0. If discard reuses an r10bio that was previously used for a read, read_slot can still be non-negative, and discard cleanup can skip bio_put() on repl_bio. Reset read_slot to -1 when preparing an r10bio for discard so the replacement bio is always released correctly. Fixes: d30588b2731f ("md/raid10: improve raid10 discard request") Signed-off-by: Chen Cheng <chencheng@fnnas.com> Reviewed-by: Xiao Ni <xiao@kernel.org> Link: https://patch.msgid.link/20260515093019.3436882-1-chencheng@fnnas.com Signed-off-by: Yu Kuai <yukuai@fygo.io>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions