On Tue, 28 Feb 2023 17:06:55 -0700, Uday Shankar wrote: > The block layer might merge together discard requests up until the > max_discard_segments limit is hit, but blk_insert_cloned_request checks > the segment count against max_segments regardless of the req op. This > can result in errors like the following when discards are issued through > a DM device and max_discard_segments exceeds max_segments for the queue > of the chosen underlying device. > > [...] Applied, thanks! [1/1] blk-mq: enforce op-specific segment limits in blk_insert_cloned_request commit: 49d24398327e32265eccdeec4baeb5a6a609c0bd Best regards, -- Jens Axboe