[PATCH] nvme: allow duplicate NSIDs for the private namespaces
Pankaj Raghav
pankydev8 at gmail.com
Sun Mar 27 22:34:41 PDT 2022
On Thu, Mar 24, 2022 at 04:43:14PM +0100, Christoph Hellwig wrote:
> From: Sungup Moon <sungup.moon at samsung.com>
>
> +
> +/*
> + * NSID shall be unique for all shared namespaces, or if at least one of the
> + * following conditions is met:
> + * 1. Namespace Management is supported by the controller
> + * 2. ANA is supported by the controller
> + * 3. NVM Set are supported by the controller
> + *
> + * In other case, private namespace are not required to report a unique NSID.
> + */
> +static inline bool nvme_is_uniqueue_nsid(struct nvme_ctrl *ctrl,
> + struct nvme_ns_head *head)
Is it s/uniqueue/unique/ ?
> +{
> + return head->shared ||
> + (ctrl->oacs & NVME_CTRL_OACS_NS_MNGT_SUPP) ||
> + (ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA) ||
> + (ctrl->ctratt & NVME_CTRL_CTRATT_NVM_SETS);
> +}
> +
>
More information about the Linux-nvme
mailing list