[PATCH 1/2] nvmet: introduce struct nvmet_passthru
Christoph Hellwig
hch at lst.de
Sun Sep 27 22:10:11 PDT 2026
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?
More information about the Linux-nvme
mailing list