All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@intel.com>
To: linux-nvdimm@lists.01.org
Subject: [ndctl PATCH v5 5/7] ndctl/namespace: Minimize label data transfer for autolabel
Date: Mon, 05 Aug 2019 17:09:29 -0700	[thread overview]
Message-ID: <156505016983.848599.11002390849262331259.stgit@dwillia2-desk3.amr.corp.intel.com> (raw)
In-Reply-To: <156505014382.848599.16271067825582995055.stgit@dwillia2-desk3.amr.corp.intel.com>

Use the new ndctl_dimm_read_label_index() helper to minimize the amount
of label I/O needed to execute an autolabel event.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 ndctl/namespace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ndctl/namespace.c b/ndctl/namespace.c
index a654460ce4c5..26d03358c80d 100644
--- a/ndctl/namespace.c
+++ b/ndctl/namespace.c
@@ -997,7 +997,7 @@ retry:
 		int num_labels, avail;
 
 		ndctl_cmd_unref(cmd_read);
-		cmd_read = ndctl_dimm_read_labels(dimm);
+		cmd_read = ndctl_dimm_read_label_index(dimm);
 		if (!cmd_read)
 			continue;
 

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

  parent reply	other threads:[~2019-08-06  0:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-06  0:09 [ndctl PATCH v5 0/7] Improvements for namespace creation/interrogation Dan Williams
2019-08-06  0:09 ` [ndctl PATCH v5 1/7] ndctl/dimm: Support small label reads/writes Dan Williams
2019-08-06  0:09 ` [ndctl PATCH v5 2/7] ndctl/dimm: Minimize data-transfer for init-labels Dan Williams
2019-08-06  0:09 ` [ndctl PATCH v5 3/7] ndctl/dimm: Add offset and size options to {read, write, zero}-labels Dan Williams
2019-08-06  0:09 ` [ndctl PATCH v5 4/7] ndctl/dimm: Limit read-labels with --index option Dan Williams
2019-08-06  0:09 ` Dan Williams [this message]
2019-08-06  0:09 ` [ndctl PATCH v5 6/7] ndctl/namespace: Continue region search on 'missing seed' event Dan Williams
2019-08-06  0:09 ` [ndctl PATCH v5 7/7] ndctl/namespace: Report ENOSPC when regions are full Dan Williams

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=156505016983.848599.11002390849262331259.stgit@dwillia2-desk3.amr.corp.intel.com \
    --to=dan.j.williams@intel.com \
    --cc=linux-nvdimm@lists.01.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.