Re: [PATCHv5 1/2] block: accumulate memory segment gaps per bio

Christoph Hellwig
2025-11-11T13:58:14Z

On Tue, Nov 11, 2025 at 08:54:53AM -0500, Keith Busch wrote:
> On Tue, Nov 11, 2025 at 02:40:01PM +0100, Christoph Hellwig wrote:
> > On Tue, Nov 11, 2025 at 08:25:38AM -0500, Keith Busch wrote:
> > > Ah, so we're merging a discard for a device that doesn't support
> > > vectored discard. I think we still want to be able to front/back merge
> > > such requests, though.
> >
> > Yes, but purely based on bi_sector/bi_size, not based on the payload.
>
> This should do it:

Yes, that looks sensible.