Re: [PATCH] block: stack max_user_discard_sectors

From: Christoph Hellwig

Date: Fri Nov 20 2026 - 19:13:48 EST


On Fri, Nov 20, 2026 at 02:43:59PM -0500, Benjamin Marzinski wrote:
> > I don't think we should take the underlying max_user_discard_sectors
> > into account here, just max_discard_sectors.
>
> Is that to handle devices that call blk_queue_disable_discard()? I
> didn't think about that. Makes sense.

That too. But also because user limits on lower devices shouldn't
really affect upper devices for consistency, as new updates on the
lower device after the upper one was created don't get picked up
either.