diff options
author | 2025-03-10 19:54:53 +0800 | |
---|---|---|
committer | 2025-03-10 07:41:25 -0600 | |
commit | fc0e982b8a3a169b1c654d9a1aa45bf292943ef2 (patch) | |
tree | 07471a0263279afbff0b8e5e6f0cc96414cb8786 /scripts/gdb/linux/utils.py | |
parent | block: protect hctx attributes/params using q->elevator_lock (diff) | |
download | wireguard-linux-fc0e982b8a3a169b1c654d9a1aa45bf292943ef2.tar.xz wireguard-linux-fc0e982b8a3a169b1c654d9a1aa45bf292943ef2.zip |
block: make sure ->nr_integrity_segments is cloned in blk_rq_prep_clone
Make sure ->nr_integrity_segments is cloned in blk_rq_prep_clone(),
otherwise requests cloned by device-mapper multipath will not have the
proper nr_integrity_segments values set, then BUG() is hit from
sg_alloc_table_chained().
Fixes: b0fd271d5fba ("block: add request clone interface (v2)")
Cc: stable@vger.kernel.org
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250310115453.2271109-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions