Re: [PATCH 06/15] nvme: remove the hack to not update the discard limits in nvme_config_discard

Christoph Hellwig
2024-01-23T08:45:41Z

On Tue, Jan 23, 2024 at 02:12:37PM +0900, Damien Le Moal wrote:
> > blk_queue_max_discard_sectors(queue, max_discard_sectors);
>
> This function references max_user_discard_sectors but that access is done
> without holding the queue limits mutex. Is that safe ?

No. But fixing nvme will be done in a follow series.