[ndctl PATCH v3 0/8] Improvements for namespace creation/interrogation
by Dan Williams
Changes since v2 [1]:
- Drop the patches that have already been applied to the 'pending' branch
- Rebase the dimm extent series and the small 'create-namespace' fixlets
- Move the new libndctl apis to the next library symbol version (Vishal)
- Defer the following to a post ndctl-v66 release:
ndctl/namespace: Add read-infoblock command
ndctl/test: Update dax-dev to handle multiple e820 ranges
ndctl/test: Make dax.sh more robust vs small namespaces
ndctl/namespace: Always zero info-blocks
ndctl/namespace: Disable autorecovery of create-namespace failures
ndctl/test: Checkout device-mapper + dax operation
ndctl/test: Exercise sub-section sized namespace creation/deletion
ndctl/namespace: Kill off the legacy mode names
ndctl/namespace: Introduce mode-to-name and name-to-mode helpers
ndctl/namespace: Validate namespace size within validate_namespace_options()
ndctl/namespace: Clarify 16M minimum size requirement
[1]: https://lists.01.org/pipermail/linux-nvdimm/2019-July/022766.html
---
This trimmed version includes the extent support for label operations
which significantly speeds up common label operations like
'init-labels'. It also fixes up some surprising results from
'create-namespace' where it would fail even though available capacity is
present. Lastly it suppresses a new warning found in Fedora Rawhide
builds that has moved to gcc 9.1.1.
---
Dan Williams (8):
ndctl/build: Suppress -Waddress-of-packed-member
ndctl/dimm: Support small label reads/writes
ndctl/dimm: Minimize data-transfer for init-labels
ndctl/dimm: Add offset and size options to {read,write,zero}-labels
ndctl/dimm: Limit read-labels with --index option
ndctl/namespace: Minimize label data transfer for autolabel
ndctl/namespace: Continue region search on 'missing seed' event
ndctl/namespace: Report ENOSPC when regions are full
Documentation/ndctl/labels-options.txt | 9 ++
Documentation/ndctl/ndctl-read-labels.txt | 7 ++
configure.ac | 1
ndctl/dimm.c | 92 +++++++++++++++++--------
ndctl/lib/dimm.c | 85 +++++++++++++++++++++--
ndctl/lib/libndctl.c | 108 +++++++++++++++++++++++++----
ndctl/lib/libndctl.sym | 9 ++
ndctl/lib/private.h | 4 -
ndctl/libndctl.h | 9 ++
ndctl/namespace.c | 13 +++
util/util.h | 4 +
11 files changed, 286 insertions(+), 55 deletions(-)
2 years, 10 months
回复:中高层经理全面管理技能提升
by 邓女士
-------- 转发邮件信息 --------
发件人:apobl(a)gozq.com
发送日期:2019-8-6 0:26:35
收件人:linux-nvdimm(a)lists.01.org
2 years, 10 months
[PATCH] memremap: move from kernel/ to mm/
by Christoph Hellwig
memremap.c implements MM functionality for ZONE_DEVICE, so it really
should be in the mm/ directory, not the kernel/ one.
Signed-off-by: Christoph Hellwig <hch(a)lst.de>
---
Sending for applying just after -rc1 preferably to avoid conflicts
later in the merge window
kernel/Makefile | 1 -
mm/Makefile | 1 +
{kernel => mm}/memremap.c | 0
3 files changed, 1 insertion(+), 1 deletion(-)
rename {kernel => mm}/memremap.c (100%)
diff --git a/kernel/Makefile b/kernel/Makefile
index a8d923b5481b..ef0d95a190b4 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -111,7 +111,6 @@ obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
obj-$(CONFIG_TORTURE_TEST) += torture.o
obj-$(CONFIG_HAS_IOMEM) += iomem.o
-obj-$(CONFIG_ZONE_DEVICE) += memremap.o
obj-$(CONFIG_RSEQ) += rseq.o
obj-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak.o
diff --git a/mm/Makefile b/mm/Makefile
index 338e528ad436..d0b295c3b764 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -102,5 +102,6 @@ obj-$(CONFIG_FRAME_VECTOR) += frame_vector.o
obj-$(CONFIG_DEBUG_PAGE_REF) += debug_page_ref.o
obj-$(CONFIG_HARDENED_USERCOPY) += usercopy.o
obj-$(CONFIG_PERCPU_STATS) += percpu-stats.o
+obj-$(CONFIG_ZONE_DEVICE) += memremap.o
obj-$(CONFIG_HMM_MIRROR) += hmm.o
obj-$(CONFIG_MEMFD_CREATE) += memfd.o
diff --git a/kernel/memremap.c b/mm/memremap.c
similarity index 100%
rename from kernel/memremap.c
rename to mm/memremap.c
--
2.20.1
2 years, 11 months
[PATCH] daxctl: link against libndctl, in case its use doesn't get pruned
by Adam Borowski
util/json.c uses libndctl symbols, and is included by daxctl. These
functions should then get pruned as unused, but on some platforms the
toolchain fails to do so.
These platforms are ia64, hppa and 32-bit powerpc. It's generally a
waste of our time to build ndctl there, but as the lack of a
build-dependency requires annoying workarounds higher in the stack,
this has been requested in https://bugs.debian.org/914348 -- and is
trivially fixable on the ndctl side.
Thanks to -Wl,--as-needed there's no harm to architectures where the
pruning works, thus let's not bother with detection.
As daxctl and libdaxctl are separate, there's no circular dependency.
Signed-off-by: Adam Borowski <kilobyte(a)angband.pl>
---
daxctl/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/daxctl/Makefile.am b/daxctl/Makefile.am
index 94f73f9..a5487d6 100644
--- a/daxctl/Makefile.am
+++ b/daxctl/Makefile.am
@@ -21,4 +21,5 @@ daxctl_LDADD =\
lib/libdaxctl.la \
../libutil.a \
$(UUID_LIBS) \
- $(JSON_LIBS)
+ $(JSON_LIBS) \
+ ../ndctl/lib/libndctl.la
--
2.23.0.rc0
2 years, 11 months
回复:提高情商是迅速提高领导力的最佳途径
by 蔡女士
-------- 转发邮件信息 --------
发件人:aora(a)nx.net
发送日期:2019-8-2 14:07:50
收件人:linux-nvdimm(a)lists.01.org
2 years, 11 months
[ndctl PATCH] ndctl/monitor: make the daemon exit message 'info' level
by Vishal Verma
The 'ndctl monitor daemon started' message is at an 'info' log level,
but the corresponding exit message (if no DIMMs are found for
monitoring) was only at a 'debug' level. As a result, on a system
without NVDIMMs, the sysadmin might see a 'monitor started' message, but
a monitor wouldn't actually be running. Making the exit message the same
log level ensures that no confusion arises out of this.
Cc: QI Fuli <qi.fuli(a)jp.fujitsu.com>
Cc: Dan Williams <dan.j.williams(a)intel.com>
Reported-by: Adam Borowski <kilobyte(a)angband.pl>
Signed-off-by: Vishal Verma <vishal.l.verma(a)intel.com>
---
ndctl/monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ndctl/monitor.c b/ndctl/monitor.c
index 6829a6b..6e7f038 100644
--- a/ndctl/monitor.c
+++ b/ndctl/monitor.c
@@ -646,7 +646,7 @@ int cmd_monitor(int argc, const char **argv, struct ndctl_ctx *ctx)
goto out;
if (!mfa.num_dimm) {
- dbg(&monitor, "no dimms to monitor\n");
+ info(&monitor, "no dimms to monitor, exiting\n");
if (!monitor.daemon)
rc = -ENXIO;
goto out;
--
2.20.1
2 years, 11 months