Re: [PATCH v5] nvme: reject passthrough of driver-managed Set Features
From: Keith Busch
Date: Mon May 25 2026 - 11:50:06 EST
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.