[PATCH 1/2] nvmet: introduce struct nvmet_passthru

Nilay Shroff nilay at linux.ibm.com
Sun Sep 27 23:35:10 PDT 2026


On 9/28/26 10:40 AM, Christoph Hellwig wrote:
> On Fri, Sep 25, 2026 at 04:51:09PM +0530, Nilay Shroff wrote:
>> Currently, passthru parameters are grouped under struct nvmet_subsys.
>> Since passthru can be configured through configfs and all passthru
>> parameters are exposed under a separate configfs subdirectory, group
>> these parameters under a new struct nvmet_passthru.
>>
>> Grouping passthru-specific parameters in a separate structure makes
>> the code easier to maintain and reason about.
>>
>> There are no functional changes intended.
> 
> If the fields are move out anyway, should they be a separate, dynamically
> allocated object so that non-passthrough users don't pay for the memory
> allocation?
> 
Yes makes sense. I'll change it to the dynamically allocated object in next
revision.

Thanks,
--Nilay



More information about the Linux-nvme mailing list