[PATCH V2 5/6] nvmet: remove unnecessary function parameters

Sagi Grimberg sagi at grimberg.me
Fri Mar 5 22:41:49 GMT 2021


> The function nvmet_alloc_ctrl() accepts subsysnqn, hostnqn, cntlid,
> nvmet_req, and out pointer to nvmet_ctrl structure. The parameters
> subsysnqn, hostnqn and cntlid can be derived from the caller's
> struct nvmf_connect_data.
> 
> Replace these parameters with structure pointer nvmf_connect_data *d.

Again, not a fan of this. But if others think its fine then go ahead...



More information about the Linux-nvme mailing list