[PATCH v5] nvme: reject passthrough of driver-managed Set Features

Keith Busch kbusch at kernel.org
Mon May 25 08:49:26 PDT 2026


On Tue, May 26, 2026 at 12:34:03AM +0900, Tokunori Ikegami wrote:
> > +static bool nvme_cmd_allowed(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
> > +			     struct nvme_command *c, unsigned int flags,
> > +			     bool open_for_write)
> 
> The struct nvme_ns does already have the struct nvme_ctrl *ctrl as a member
> variable as below so seems not necessary to add the function argument struct
> nvme_ctrl *ctrl.

This filter is for admin commands, so the 'ns' parameter is NULL for
this case.



More information about the Linux-nvme mailing list