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

Christoph Hellwig hch at lst.de
Tue Jan 23 00:45:32 PST 2024


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.



More information about the Linux-nvme mailing list