linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>
To: "linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>
Cc: "MRuijter@onestopsystems.com" <MRuijter@onestopsystems.com>,
	"hch@lst.de" <hch@lst.de>
Subject: Re: [PATCH V2] nvmet: make ctrl model configurable
Date: Wed, 20 Nov 2019 04:38:17 +0000	[thread overview]
Message-ID: <BYAPR04MB57492D38E78427EFE5F39595864F0@BYAPR04MB5749.namprd04.prod.outlook.com> (raw)
In-Reply-To: <20191113215846.22399-1-chaitanya.kulkarni@wdc.com>

Ping ?
On 11/13/2019 01:58 PM, Chaitanya Kulkarni wrote:
> From: Mark Ruijter <MRuijter@onestopsystems.com>
>
> This patch adds a new target subsys attribute which allows user to
> optionally specify model name which then used in the
> nvmet_execute_identify_ctrl() to fill up the nvme_id_ctrl structure.
>
> The default value for the model is set to "Linux" for backward
> compatibility.
>
> Signed-off-by: Mark Ruijter <MRuijter@onestopsystems.com>
> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
> ---
> Changes from V1:-
>
> 1. Don't allocate memory for default subsys model,
> 2. Use helper to get the default model string from ctrl->subsys in the
>     nvmet_execute_identify_ctrl() and nvmet_subsys_attr_model()_show.
>     Later is needed so that nvmetcli can display default value Linux
>     when the model is not set from the user.
> 3. Get rid of the extra variable c in the nvmet_subsys_attr_model_store()
>     and replace for with while loop without loosing the code redability.
> ---
>   drivers/nvme/target/admin-cmd.c |  9 +++++--
>   drivers/nvme/target/configfs.c  | 44 +++++++++++++++++++++++++++++++++
>   drivers/nvme/target/core.c      |  2 ++
>   drivers/nvme/target/nvmet.h     |  4 +++
>   4 files changed, 57 insertions(+), 2 deletions(-)
>


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

  parent reply	other threads:[~2019-11-20  4:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-13 21:58 Chaitanya Kulkarni
2019-11-13 21:58 ` [PATCH] nvmetcli: allow setting of the subsystem model Chaitanya Kulkarni
2019-11-20  4:38   ` Chaitanya Kulkarni
2019-11-20  4:38 ` Chaitanya Kulkarni [this message]
2019-11-20 18:41 ` [PATCH V2] nvmet: make ctrl model configurable Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BYAPR04MB57492D38E78427EFE5F39595864F0@BYAPR04MB5749.namprd04.prod.outlook.com \
    --to=chaitanya.kulkarni@wdc.com \
    --cc=MRuijter@onestopsystems.com \
    --cc=hch@lst.de \
    --cc=linux-nvme@lists.infradead.org \
    --subject='Re: [PATCH V2] nvmet: make ctrl model configurable' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).