On Mon, Mar 10, 2025 at 05:16:10PM +0800, Ming Lei wrote:
Make sure ->nr_integrity_segments is cloned in blk_rq_prep_clone(), otherwise zero ->nr_integrity_segments will be observed in sg_alloc_table_chained(), in which BUG() is hit.
Maybe reword this to:
... otherwise requests cloned by device-mapper multipath will not have the prope nr_integrity_segments values set?
The fact that sg_alloc_table_chained BUGā½)s is just a symptom of that.
Cc: stable@vger.kernel.org
... and replace this with a proper Fixes tag?