[PATCH 13/21] nvme: split out a nvme_identify_ns_nvm helper

Christoph Hellwig hch at lst.de
Thu Feb 29 05:53:45 PST 2024


On Thu, Feb 29, 2024 at 03:52:08PM +0200, Max Gurtovoy wrote:
> I actually had a similar logic in one of the patches of the PI series I've 
> sent :)
> BTW, we need only the elbaf field from the nvm response structure so we can 
> ease the code a bit and free the nvm inside the nvme_identify_ns_nvm() 
> instead of in the caller...

Ithought about that, and while it might be a tad cleaner currently,
as soon as the identify_ns_nvm structure grows more fields that we'll
use that'll get uglier.




More information about the Linux-nvme mailing list