* [PATCH v2 1/3] dev-dax: add support to display badblocks in sysfs for dev-dax
@ 2016-12-19 23:30 Dave Jiang
2016-12-19 23:30 ` [PATCH v2 2/3] nvdimm-testing: providing dax support for nvdimm testing Dave Jiang
2016-12-19 23:30 ` [PATCH v2 3/3] dev-dax: add fallocate support to clear poison Dave Jiang
0 siblings, 2 replies; 8+ messages in thread
From: Dave Jiang @ 2016-12-19 23:30 UTC (permalink / raw)
To: dan.j.williams; +Cc: linux-nvdimm
Adding support to show badblocks in the pmem region that's provided
by the poison_list. This should show up in
/sys/class/dax/daxN.N/badblocks as read only. Currently we only support
a single resource and we do not support badblocks for seeds. Additional
support code will be implemented to support.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
drivers/dax/dax.c | 23 ++++++++++++++++++---
drivers/dax/dax.h | 8 ++++++-
drivers/dax/pmem.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 83 insertions(+), 5 deletions(-)
diff --git a/drivers/dax/dax.c b/drivers/dax/dax.c
index 9352cbc..c5fd53e 100644
--- a/drivers/dax/dax.c
+++ b/drivers/dax/dax.c
@@ -73,6 +73,7 @@ struct dax_dev {
int id;
int num_resources;
struct resource res[0];
+ void *private;
};
static ssize_t id_show(struct device *dev,
@@ -326,6 +327,20 @@ static struct dax_dev *to_dax_dev(struct device *dev)
return container_of(dev, struct dax_dev, dev);
}
+void *dax_dev_get_private(struct device *dev)
+{
+ struct dax_dev *dax_dev = to_dax_dev(dev);
+
+ return dax_dev->private;
+}
+EXPORT_SYMBOL_GPL(dax_dev_get_private);
+
+void dax_dev_set_private(struct dax_dev *dax_dev, void *priv)
+{
+ dax_dev->private = priv;
+}
+EXPORT_SYMBOL_GPL(dax_dev_set_private);
+
static ssize_t size_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
@@ -345,9 +360,10 @@ static struct attribute *dax_device_attributes[] = {
NULL,
};
-static const struct attribute_group dax_device_attribute_group = {
+struct attribute_group dax_device_attribute_group = {
.attrs = dax_device_attributes,
};
+EXPORT_SYMBOL_GPL(dax_device_attribute_group);
static const struct attribute_group *dax_attribute_groups[] = {
&dax_device_attribute_group,
@@ -653,7 +669,8 @@ static void unregister_dax_dev(void *dev)
}
struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
- struct resource *res, int count)
+ struct resource *res, int count,
+ const struct attribute_group **groups)
{
struct device *parent = dax_region->dev;
struct dax_dev *dax_dev;
@@ -720,7 +737,7 @@ struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
dev->devt = dev_t;
dev->class = dax_class;
dev->parent = parent;
- dev->groups = dax_attribute_groups;
+ dev->groups = groups ? groups : dax_attribute_groups;
dev->release = dax_dev_release;
dev_set_name(dev, "dax%d.%d", dax_region->id, dax_dev->id);
rc = device_add(dev);
diff --git a/drivers/dax/dax.h b/drivers/dax/dax.h
index ddd829a..c23c7ac 100644
--- a/drivers/dax/dax.h
+++ b/drivers/dax/dax.h
@@ -16,10 +16,16 @@ struct device;
struct dax_dev;
struct resource;
struct dax_region;
+extern struct attribute_group dax_device_attribute_group;
+
void dax_region_put(struct dax_region *dax_region);
struct dax_region *alloc_dax_region(struct device *parent,
int region_id, struct resource *res, unsigned int align,
void *addr, unsigned long flags);
struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
- struct resource *res, int count);
+ struct resource *res, int count,
+ const struct attribute_group **groups);
+void *dax_dev_get_private(struct device *dev);
+void dax_dev_set_private(struct dax_dev *dax_dev, void *priv);
+
#endif /* __DAX_H__ */
diff --git a/drivers/dax/pmem.c b/drivers/dax/pmem.c
index 033f49b3..5ffb2e9 100644
--- a/drivers/dax/pmem.c
+++ b/drivers/dax/pmem.c
@@ -14,6 +14,7 @@
#include <linux/memremap.h>
#include <linux/module.h>
#include <linux/pfn_t.h>
+#include <linux/badblocks.h>
#include "../nvdimm/pfn.h"
#include "../nvdimm/nd.h"
#include "dax.h"
@@ -22,6 +23,32 @@ struct dax_pmem {
struct device *dev;
struct percpu_ref ref;
struct completion cmp;
+ struct badblocks bb;
+};
+
+static ssize_t dax_pmem_badblocks_show(struct device *dev,
+ struct device_attribute *attr, char *page)
+{
+ struct dax_pmem *dax_pmem =
+ (struct dax_pmem *)dax_dev_get_private(dev);
+
+ return badblocks_show(&dax_pmem->bb, page, 0);
+}
+static DEVICE_ATTR(badblocks, S_IRUGO, dax_pmem_badblocks_show, NULL);
+
+static struct attribute *dax_pmem_badblock_attributes[] = {
+ &dev_attr_badblocks.attr,
+ NULL,
+};
+
+static struct attribute_group dax_pmem_badblock_attribute_group = {
+ .attrs = dax_pmem_badblock_attributes,
+};
+
+static const struct attribute_group *dax_pmem_attribute_groups[] = {
+ &dax_device_attribute_group,
+ &dax_pmem_badblock_attribute_group,
+ NULL,
};
static struct dax_pmem *to_dax_pmem(struct percpu_ref *ref)
@@ -130,7 +157,15 @@ static int dax_pmem_probe(struct device *dev)
return -ENOMEM;
/* TODO: support for subdividing a dax region... */
- dax_dev = devm_create_dax_dev(dax_region, &res, 1);
+ dax_dev = devm_create_dax_dev(dax_region, &res, 1,
+ dax_pmem_attribute_groups);
+ dax_dev_set_private(dax_dev, dax_pmem);
+
+ rc = devm_init_badblocks(dev, &dax_pmem->bb);
+ if (rc)
+ return rc;
+
+ nvdimm_badblocks_populate(nd_region, &dax_pmem->bb, &res);
/* child dax_dev instances now own the lifetime of the dax_region */
dax_region_put(dax_region);
@@ -138,8 +173,28 @@ static int dax_pmem_probe(struct device *dev)
return PTR_ERR_OR_ZERO(dax_dev);
}
+static void dax_pmem_notify(struct device *dev, enum nvdimm_event event)
+{
+ struct dax_pmem *dax_pmem =
+ (struct dax_pmem *)dax_dev_get_private(dev);
+ struct nd_region *nd_region = to_nd_region(dev->parent);
+ struct nd_namespace_common *ndns;
+ struct nd_namespace_io *nsio;
+ struct resource res;
+
+ if (event != NVDIMM_REVALIDATE_POISON)
+ return;
+
+ ndns = nvdimm_namespace_common_probe(dev);
+ nsio = to_nd_namespace_io(&ndns->dev);
+ res.start = nsio->res.start;
+ res.end = nsio->res.end;
+ nvdimm_badblocks_populate(nd_region, &dax_pmem->bb, &res);
+}
+
static struct nd_device_driver dax_pmem_driver = {
.probe = dax_pmem_probe,
+ .notify = dax_pmem_notify,
.drv = {
.name = "dax_pmem",
},
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 2/3] nvdimm-testing: providing dax support for nvdimm testing
2016-12-19 23:30 [PATCH v2 1/3] dev-dax: add support to display badblocks in sysfs for dev-dax Dave Jiang
@ 2016-12-19 23:30 ` Dave Jiang
2016-12-19 23:30 ` [PATCH v2 3/3] dev-dax: add fallocate support to clear poison Dave Jiang
1 sibling, 0 replies; 8+ messages in thread
From: Dave Jiang @ 2016-12-19 23:30 UTC (permalink / raw)
To: dan.j.williams; +Cc: linux-nvdimm
Adding dax support to the nvdimm testing in tools/testing/nvdimm. The
memory allocated by the tool is via vmalloc and non-contiguous.
Overriding pgoff_to_phys() call to support the vmalloc memory.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
drivers/dax/dax-private.h | 43 ++++++++++++++++++++++++++++++++++++++++
drivers/dax/dax.c | 30 +++++-----------------------
tools/testing/nvdimm/Kbuild | 3 ++-
tools/testing/nvdimm/dax-dev.c | 40 +++++++++++++++++++++++++++++++++++++
4 files changed, 90 insertions(+), 26 deletions(-)
create mode 100644 drivers/dax/dax-private.h
create mode 100644 tools/testing/nvdimm/dax-dev.c
diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h
new file mode 100644
index 0000000..a119ef9
--- /dev/null
+++ b/drivers/dax/dax-private.h
@@ -0,0 +1,43 @@
+/*
+ * Copyright(c) 2016 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ */
+#ifndef __DAX_PRIVATE_H__
+#define __DAX_PRIVATE_H__
+
+#include <linux/device.h>
+#include <linux/cdev.h>
+
+/**
+ * struct dax_dev - subdivision of a dax region
+ * @region - parent region
+ * @resize_lock - for resource size reductions
+ * @dev - device backing the character device
+ * @cdev - core chardev data
+ * @alive - !alive + rcu grace period == no new mappings can be established
+ * @id - child id in the region
+ * @num_resources - number of physical address extents in this device
+ * @res - array of physical address ranges
+ */
+struct dax_dev {
+ struct dax_region *region;
+ rwlock_t resize_lock;
+ struct inode *inode;
+ struct device dev;
+ struct cdev cdev;
+ bool alive;
+ int id;
+ int num_resources;
+ struct resource res[0];
+ void *private;
+};
+
+#endif
diff --git a/drivers/dax/dax.c b/drivers/dax/dax.c
index c5fd53e..f1857e6 100644
--- a/drivers/dax/dax.c
+++ b/drivers/dax/dax.c
@@ -22,6 +22,7 @@
#include <linux/fs.h>
#include <linux/mm.h>
#include "dax.h"
+#include "dax-private.h"
static dev_t dax_devt;
static struct class *dax_class;
@@ -54,28 +55,6 @@ struct dax_region {
unsigned long pfn_flags;
};
-/**
- * struct dax_dev - subdivision of a dax region
- * @region - parent region
- * @dev - device backing the character device
- * @cdev - core chardev data
- * @alive - !alive + rcu grace period == no new mappings can be established
- * @id - child id in the region
- * @num_resources - number of physical address extents in this device
- * @res - array of physical address ranges
- */
-struct dax_dev {
- struct dax_region *region;
- struct inode *inode;
- struct device dev;
- struct cdev cdev;
- bool alive;
- int id;
- int num_resources;
- struct resource res[0];
- void *private;
-};
-
static ssize_t id_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
@@ -411,7 +390,8 @@ static int check_vma(struct dax_dev *dax_dev, struct vm_area_struct *vma,
return 0;
}
-static phys_addr_t pgoff_to_phys(struct dax_dev *dax_dev, pgoff_t pgoff,
+/* see "strong" declaration in tools/testing/nvdimm/dax-dev.c */
+__weak phys_addr_t dax_pgoff_to_phys(struct dax_dev *dax_dev, pgoff_t pgoff,
unsigned long size)
{
struct resource *res;
@@ -454,7 +434,7 @@ static int __dax_dev_fault(struct dax_dev *dax_dev, struct vm_area_struct *vma,
return VM_FAULT_SIGBUS;
}
- phys = pgoff_to_phys(dax_dev, vmf->pgoff, PAGE_SIZE);
+ phys = dax_pgoff_to_phys(dax_dev, vmf->pgoff, PAGE_SIZE);
if (phys == -1) {
dev_dbg(dev, "%s: phys_to_pgoff(%#lx) failed\n", __func__,
vmf->pgoff);
@@ -516,7 +496,7 @@ static int __dax_dev_pmd_fault(struct dax_dev *dax_dev,
}
pgoff = linear_page_index(vma, pmd_addr);
- phys = pgoff_to_phys(dax_dev, pgoff, PMD_SIZE);
+ phys = dax_pgoff_to_phys(dax_dev, pgoff, PMD_SIZE);
if (phys == -1) {
dev_dbg(dev, "%s: phys_to_pgoff(%#lx) failed\n", __func__,
pgoff);
diff --git a/tools/testing/nvdimm/Kbuild b/tools/testing/nvdimm/Kbuild
index 405212b..6dcb3c4 100644
--- a/tools/testing/nvdimm/Kbuild
+++ b/tools/testing/nvdimm/Kbuild
@@ -28,7 +28,7 @@ obj-$(CONFIG_ND_BTT) += nd_btt.o
obj-$(CONFIG_ND_BLK) += nd_blk.o
obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
obj-$(CONFIG_ACPI_NFIT) += nfit.o
-obj-$(CONFIG_DEV_DAX) += dax.o
+obj-$(CONFIG_DEV_DAX) += dax.o dax-dev.o
obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
nfit-y := $(ACPI_SRC)/core.o
@@ -49,6 +49,7 @@ nd_e820-y := $(NVDIMM_SRC)/e820.o
nd_e820-y += config_check.o
dax-y := $(DAX_SRC)/dax.o
+dax-y += dax-dev.o
dax-y += config_check.o
dax_pmem-y := $(DAX_SRC)/pmem.o
diff --git a/tools/testing/nvdimm/dax-dev.c b/tools/testing/nvdimm/dax-dev.c
new file mode 100644
index 0000000..cd9a5e0
--- /dev/null
+++ b/tools/testing/nvdimm/dax-dev.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2016, Intel Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ */
+#include "test/nfit_test.h"
+#include <linux/mm.h>
+#include "../../../drivers/dax/dax-private.h"
+
+phys_addr_t dax_pgoff_to_phys(struct dax_dev *dax_dev, pgoff_t pgoff,
+ unsigned long size)
+{
+ struct address_space *mapping = dax_dev->inode->i_mapping;
+ phys_addr_t dev_offset = PFN_PHYS(pgoff), res_offset;
+ struct resource *res;
+
+ res = radix_tree_lookup(&mapping->page_tree, PFN_PHYS(pgoff));
+ if (!res)
+ return -1;
+
+ res_offset = dev_offset - to_dev_offset(res);
+ if (res_offset + size >= resource_size(res))
+ return -1;
+
+ if (get_nfit_res(res->start + res_offset)) {
+ struct page *page;
+
+ page = vmalloc_to_page((void *)(res->start + res_offset));
+ return PFN_PHYS(page_to_pfn(page));
+ }
+
+ return res->start + res_offset;
+}
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 3/3] dev-dax: add fallocate support to clear poison
2016-12-19 23:30 [PATCH v2 1/3] dev-dax: add support to display badblocks in sysfs for dev-dax Dave Jiang
2016-12-19 23:30 ` [PATCH v2 2/3] nvdimm-testing: providing dax support for nvdimm testing Dave Jiang
@ 2016-12-19 23:30 ` Dave Jiang
2016-12-20 0:46 ` Dan Williams
[not found] ` <148219024781.15885.1883996216561314302.stgit-Cxk7aZI4ujnJARH06PadV2t3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
1 sibling, 2 replies; 8+ messages in thread
From: Dave Jiang @ 2016-12-19 23:30 UTC (permalink / raw)
To: dan.j.williams; +Cc: linux-nvdimm
Adding fallocate support to device-dax. This implements FALLOC_FL_PUNCH_HOLE
in order to allow clearing of badblocks/poison list.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
drivers/dax/dax-private.h | 1 +
drivers/dax/dax.c | 24 +++++++++++++++-
drivers/dax/dax.h | 4 ++-
drivers/dax/pmem.c | 68 ++++++++++++++++++++++++++++++++++++++++++++-
fs/open.c | 2 +
5 files changed, 95 insertions(+), 4 deletions(-)
diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h
index a119ef9..aea927d 100644
--- a/drivers/dax/dax-private.h
+++ b/drivers/dax/dax-private.h
@@ -38,6 +38,7 @@ struct dax_dev {
int num_resources;
struct resource res[0];
void *private;
+ const struct file_operations *fops;
};
#endif
diff --git a/drivers/dax/dax.c b/drivers/dax/dax.c
index f1857e6..b5cd73e 100644
--- a/drivers/dax/dax.c
+++ b/drivers/dax/dax.c
@@ -21,6 +21,7 @@
#include <linux/dax.h>
#include <linux/fs.h>
#include <linux/mm.h>
+#include <linux/falloc.h>
#include "dax.h"
#include "dax-private.h"
@@ -314,6 +315,12 @@ void *dax_dev_get_private(struct device *dev)
}
EXPORT_SYMBOL_GPL(dax_dev_get_private);
+struct device *dax_dev_get_device(struct dax_dev *dax_dev)
+{
+ return &dax_dev->dev;
+}
+EXPORT_SYMBOL_GPL(dax_dev_get_device);
+
void dax_dev_set_private(struct dax_dev *dax_dev, void *priv)
{
dax_dev->private = priv;
@@ -606,6 +613,17 @@ static int dax_release(struct inode *inode, struct file *filp)
return 0;
}
+static long dax_fallocate(struct file *file, int mode,
+ loff_t offset, loff_t len)
+{
+ struct dax_dev *dax_dev = file->private_data;
+
+ if (dax_dev->fops)
+ return dax_dev->fops->fallocate(file, mode, offset, len);
+
+ return -EOPNOTSUPP;
+}
+
static const struct file_operations dax_fops = {
.llseek = noop_llseek,
.owner = THIS_MODULE,
@@ -613,6 +631,7 @@ static const struct file_operations dax_fops = {
.release = dax_release,
.get_unmapped_area = dax_get_unmapped_area,
.mmap = dax_mmap,
+ .fallocate = dax_fallocate,
};
static void dax_dev_release(struct device *dev)
@@ -650,7 +669,8 @@ static void unregister_dax_dev(void *dev)
struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
struct resource *res, int count,
- const struct attribute_group **groups)
+ const struct attribute_group **groups,
+ const struct file_operations *fops)
{
struct device *parent = dax_region->dev;
struct dax_dev *dax_dev;
@@ -730,6 +750,8 @@ struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
if (rc)
return ERR_PTR(rc);
+ dax_dev->fops = fops;
+
return dax_dev;
err_cdev:
diff --git a/drivers/dax/dax.h b/drivers/dax/dax.h
index c23c7ac..6a31a74 100644
--- a/drivers/dax/dax.h
+++ b/drivers/dax/dax.h
@@ -24,8 +24,10 @@ struct dax_region *alloc_dax_region(struct device *parent,
void *addr, unsigned long flags);
struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
struct resource *res, int count,
- const struct attribute_group **groups);
+ const struct attribute_group **groups,
+ const struct file_operations *fops);
void *dax_dev_get_private(struct device *dev);
void dax_dev_set_private(struct dax_dev *dax_dev, void *priv);
+struct device *dax_dev_get_device(struct dax_dev *dax_dev);
#endif /* __DAX_H__ */
diff --git a/drivers/dax/pmem.c b/drivers/dax/pmem.c
index 5ffb2e9..5ab4900 100644
--- a/drivers/dax/pmem.c
+++ b/drivers/dax/pmem.c
@@ -15,6 +15,7 @@
#include <linux/module.h>
#include <linux/pfn_t.h>
#include <linux/badblocks.h>
+#include <linux/falloc.h>
#include "../nvdimm/pfn.h"
#include "../nvdimm/nd.h"
#include "dax.h"
@@ -24,6 +25,69 @@ struct dax_pmem {
struct percpu_ref ref;
struct completion cmp;
struct badblocks bb;
+ resource_size_t start;
+ resource_size_t end;
+};
+
+static void dax_pmem_clear_poison(struct dax_pmem *dax_pmem,
+ loff_t offset, loff_t len)
+{
+ sector_t sector;
+ long cleared;
+
+ sector = offset >> 9;
+ cleared = nvdimm_clear_poison(dax_pmem->dev,
+ dax_pmem->start + offset, len);
+
+ if ((cleared > 0) && (cleared >> 9)) {
+ dev_dbg(dax_pmem->dev, "%s: %#llx clear %ld sector%s\n",
+ __func__, (unsigned long long)sector,
+ cleared >> 9, cleared >> 9 > 1 ? "s" : "");
+ badblocks_clear(&dax_pmem->bb, sector, cleared >> 9);
+ }
+}
+
+static long dax_pmem_fallocate(struct file *file, int mode,
+ loff_t start, loff_t len)
+{
+ struct dax_dev *dax_dev = file->private_data;
+ struct device *dev;
+ struct dax_pmem *dax_pmem;
+ loff_t end = start + len - 1;
+ loff_t res_size;
+
+ dev = dax_dev_get_device(dax_dev);
+ dax_pmem = dax_dev_get_private(dev);
+ res_size = dax_pmem->end - dax_pmem->start + 1;
+
+ dev_dbg(dev, "fallocate mode: %#x, start: %#llx, len: %llu\n",
+ mode, start, len);
+ dev_dbg(dev, "res start: %#llx end: %#llx size: %llu\n",
+ dax_pmem->start, dax_pmem->end, res_size);
+
+ /* check size boundares */
+ if (start >= dax_pmem->end)
+ return -EINVAL;
+ if (end >= res_size) {
+ if (mode & FALLOC_FL_KEEP_SIZE)
+ len = res_size - start;
+ else
+ return -EINVAL;
+ }
+
+ switch (mode) {
+ case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE:
+ dax_pmem_clear_poison(dax_pmem, start, len);
+ break;
+ default:
+ return -EOPNOTSUPP;
+ }
+
+ return 0;
+}
+
+static const struct file_operations pmem_fops = {
+ .fallocate = dax_pmem_fallocate,
};
static ssize_t dax_pmem_badblocks_show(struct device *dev,
@@ -158,8 +222,10 @@ static int dax_pmem_probe(struct device *dev)
/* TODO: support for subdividing a dax region... */
dax_dev = devm_create_dax_dev(dax_region, &res, 1,
- dax_pmem_attribute_groups);
+ dax_pmem_attribute_groups, &pmem_fops);
dax_dev_set_private(dax_dev, dax_pmem);
+ dax_pmem->start = res.start;
+ dax_pmem->end = res.end;
rc = devm_init_badblocks(dev, &dax_pmem->bb);
if (rc)
diff --git a/fs/open.c b/fs/open.c
index d3ed817..15325fd 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -306,7 +306,7 @@ int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
* for directories or not.
*/
if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode) &&
- !S_ISBLK(inode->i_mode))
+ !S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode))
return -ENODEV;
/* Check for wrap through zero too */
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] dev-dax: add fallocate support to clear poison
2016-12-19 23:30 ` [PATCH v2 3/3] dev-dax: add fallocate support to clear poison Dave Jiang
@ 2016-12-20 0:46 ` Dan Williams
[not found] ` <148219024781.15885.1883996216561314302.stgit-Cxk7aZI4ujnJARH06PadV2t3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
1 sibling, 0 replies; 8+ messages in thread
From: Dan Williams @ 2016-12-20 0:46 UTC (permalink / raw)
To: Dave Jiang; +Cc: linux-fsdevel, linux-nvdimm@lists.01.org
[ adding fsdevel for fs/open.c change ]
On Mon, Dec 19, 2016 at 3:30 PM, Dave Jiang <dave.jiang@intel.com> wrote:
> Adding fallocate support to device-dax. This implements FALLOC_FL_PUNCH_HOLE
> in order to allow clearing of badblocks/poison list.
I think we need to say more about the rationale for picking fallocate
as the interface to clear errors in a device-dax address range,
especially to justify the change to vfs_fallocate().
---
In commit 25f4c41415e5 ("block: implement (some of) fallocate for
block devices") support for fallocate on block devices to prevent the
need for new ioctls for common semantics that fallocate already
communicates.
In the case of filesystem-dax (xfs or ext4) a punch hole operation is
effective for clearing a media error. It will deallocate blocks and
the zeroing that is performed when the blocks are reallocated will
clear media errors. We want the same semantic for device-dax.
FALLOC_FL_PUNCH_HOLE triggers the driver stack to clear any media
errors, although unlike the filesystem case there are no physical
ranges de-allocated from the device. With support for this subset of
fallocate we can avoid needing to add a custom ioctl for similar
functionality.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
> drivers/dax/dax-private.h | 1 +
> drivers/dax/dax.c | 24 +++++++++++++++-
> drivers/dax/dax.h | 4 ++-
> drivers/dax/pmem.c | 68 ++++++++++++++++++++++++++++++++++++++++++++-
> fs/open.c | 2 +
> 5 files changed, 95 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h
> index a119ef9..aea927d 100644
> --- a/drivers/dax/dax-private.h
> +++ b/drivers/dax/dax-private.h
> @@ -38,6 +38,7 @@ struct dax_dev {
> int num_resources;
> struct resource res[0];
> void *private;
> + const struct file_operations *fops;
> };
>
> #endif
> diff --git a/drivers/dax/dax.c b/drivers/dax/dax.c
> index f1857e6..b5cd73e 100644
> --- a/drivers/dax/dax.c
> +++ b/drivers/dax/dax.c
> @@ -21,6 +21,7 @@
> #include <linux/dax.h>
> #include <linux/fs.h>
> #include <linux/mm.h>
> +#include <linux/falloc.h>
> #include "dax.h"
> #include "dax-private.h"
>
> @@ -314,6 +315,12 @@ void *dax_dev_get_private(struct device *dev)
> }
> EXPORT_SYMBOL_GPL(dax_dev_get_private);
>
> +struct device *dax_dev_get_device(struct dax_dev *dax_dev)
> +{
> + return &dax_dev->dev;
> +}
> +EXPORT_SYMBOL_GPL(dax_dev_get_device);
> +
> void dax_dev_set_private(struct dax_dev *dax_dev, void *priv)
> {
> dax_dev->private = priv;
> @@ -606,6 +613,17 @@ static int dax_release(struct inode *inode, struct file *filp)
> return 0;
> }
>
> +static long dax_fallocate(struct file *file, int mode,
> + loff_t offset, loff_t len)
> +{
> + struct dax_dev *dax_dev = file->private_data;
> +
> + if (dax_dev->fops)
> + return dax_dev->fops->fallocate(file, mode, offset, len);
> +
> + return -EOPNOTSUPP;
> +}
> +
> static const struct file_operations dax_fops = {
> .llseek = noop_llseek,
> .owner = THIS_MODULE,
> @@ -613,6 +631,7 @@ static const struct file_operations dax_fops = {
> .release = dax_release,
> .get_unmapped_area = dax_get_unmapped_area,
> .mmap = dax_mmap,
> + .fallocate = dax_fallocate,
> };
>
> static void dax_dev_release(struct device *dev)
> @@ -650,7 +669,8 @@ static void unregister_dax_dev(void *dev)
>
> struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
> struct resource *res, int count,
> - const struct attribute_group **groups)
> + const struct attribute_group **groups,
> + const struct file_operations *fops)
> {
> struct device *parent = dax_region->dev;
> struct dax_dev *dax_dev;
> @@ -730,6 +750,8 @@ struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
> if (rc)
> return ERR_PTR(rc);
>
> + dax_dev->fops = fops;
> +
> return dax_dev;
>
> err_cdev:
> diff --git a/drivers/dax/dax.h b/drivers/dax/dax.h
> index c23c7ac..6a31a74 100644
> --- a/drivers/dax/dax.h
> +++ b/drivers/dax/dax.h
> @@ -24,8 +24,10 @@ struct dax_region *alloc_dax_region(struct device *parent,
> void *addr, unsigned long flags);
> struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
> struct resource *res, int count,
> - const struct attribute_group **groups);
> + const struct attribute_group **groups,
> + const struct file_operations *fops);
> void *dax_dev_get_private(struct device *dev);
> void dax_dev_set_private(struct dax_dev *dax_dev, void *priv);
> +struct device *dax_dev_get_device(struct dax_dev *dax_dev);
>
> #endif /* __DAX_H__ */
> diff --git a/drivers/dax/pmem.c b/drivers/dax/pmem.c
> index 5ffb2e9..5ab4900 100644
> --- a/drivers/dax/pmem.c
> +++ b/drivers/dax/pmem.c
> @@ -15,6 +15,7 @@
> #include <linux/module.h>
> #include <linux/pfn_t.h>
> #include <linux/badblocks.h>
> +#include <linux/falloc.h>
> #include "../nvdimm/pfn.h"
> #include "../nvdimm/nd.h"
> #include "dax.h"
> @@ -24,6 +25,69 @@ struct dax_pmem {
> struct percpu_ref ref;
> struct completion cmp;
> struct badblocks bb;
> + resource_size_t start;
> + resource_size_t end;
> +};
> +
> +static void dax_pmem_clear_poison(struct dax_pmem *dax_pmem,
> + loff_t offset, loff_t len)
> +{
> + sector_t sector;
> + long cleared;
> +
> + sector = offset >> 9;
> + cleared = nvdimm_clear_poison(dax_pmem->dev,
> + dax_pmem->start + offset, len);
> +
> + if ((cleared > 0) && (cleared >> 9)) {
> + dev_dbg(dax_pmem->dev, "%s: %#llx clear %ld sector%s\n",
> + __func__, (unsigned long long)sector,
> + cleared >> 9, cleared >> 9 > 1 ? "s" : "");
> + badblocks_clear(&dax_pmem->bb, sector, cleared >> 9);
> + }
> +}
> +
> +static long dax_pmem_fallocate(struct file *file, int mode,
> + loff_t start, loff_t len)
> +{
> + struct dax_dev *dax_dev = file->private_data;
> + struct device *dev;
> + struct dax_pmem *dax_pmem;
> + loff_t end = start + len - 1;
> + loff_t res_size;
> +
> + dev = dax_dev_get_device(dax_dev);
> + dax_pmem = dax_dev_get_private(dev);
> + res_size = dax_pmem->end - dax_pmem->start + 1;
> +
> + dev_dbg(dev, "fallocate mode: %#x, start: %#llx, len: %llu\n",
> + mode, start, len);
> + dev_dbg(dev, "res start: %#llx end: %#llx size: %llu\n",
> + dax_pmem->start, dax_pmem->end, res_size);
> +
> + /* check size boundares */
> + if (start >= dax_pmem->end)
> + return -EINVAL;
> + if (end >= res_size) {
> + if (mode & FALLOC_FL_KEEP_SIZE)
> + len = res_size - start;
> + else
> + return -EINVAL;
> + }
> +
> + switch (mode) {
> + case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE:
> + dax_pmem_clear_poison(dax_pmem, start, len);
> + break;
> + default:
> + return -EOPNOTSUPP;
> + }
> +
> + return 0;
> +}
> +
> +static const struct file_operations pmem_fops = {
> + .fallocate = dax_pmem_fallocate,
> };
>
> static ssize_t dax_pmem_badblocks_show(struct device *dev,
> @@ -158,8 +222,10 @@ static int dax_pmem_probe(struct device *dev)
>
> /* TODO: support for subdividing a dax region... */
> dax_dev = devm_create_dax_dev(dax_region, &res, 1,
> - dax_pmem_attribute_groups);
> + dax_pmem_attribute_groups, &pmem_fops);
> dax_dev_set_private(dax_dev, dax_pmem);
> + dax_pmem->start = res.start;
> + dax_pmem->end = res.end;
>
> rc = devm_init_badblocks(dev, &dax_pmem->bb);
> if (rc)
> diff --git a/fs/open.c b/fs/open.c
> index d3ed817..15325fd 100644
> --- a/fs/open.c
> +++ b/fs/open.c
> @@ -306,7 +306,7 @@ int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
> * for directories or not.
> */
> if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode) &&
> - !S_ISBLK(inode->i_mode))
> + !S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode))
> return -ENODEV;
>
> /* Check for wrap through zero too */
>
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] dev-dax: add fallocate support to clear poison
@ 2016-12-20 0:46 ` Dan Williams
0 siblings, 0 replies; 8+ messages in thread
From: Dan Williams @ 2016-12-20 0:46 UTC (permalink / raw)
To: Dave Jiang
Cc: Vishal L Verma, jmoyer, linux-nvdimm@lists.01.org, linux-fsdevel
[ adding fsdevel for fs/open.c change ]
On Mon, Dec 19, 2016 at 3:30 PM, Dave Jiang <dave.jiang@intel.com> wrote:
> Adding fallocate support to device-dax. This implements FALLOC_FL_PUNCH_HOLE
> in order to allow clearing of badblocks/poison list.
I think we need to say more about the rationale for picking fallocate
as the interface to clear errors in a device-dax address range,
especially to justify the change to vfs_fallocate().
---
In commit 25f4c41415e5 ("block: implement (some of) fallocate for
block devices") support for fallocate on block devices to prevent the
need for new ioctls for common semantics that fallocate already
communicates.
In the case of filesystem-dax (xfs or ext4) a punch hole operation is
effective for clearing a media error. It will deallocate blocks and
the zeroing that is performed when the blocks are reallocated will
clear media errors. We want the same semantic for device-dax.
FALLOC_FL_PUNCH_HOLE triggers the driver stack to clear any media
errors, although unlike the filesystem case there are no physical
ranges de-allocated from the device. With support for this subset of
fallocate we can avoid needing to add a custom ioctl for similar
functionality.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
> drivers/dax/dax-private.h | 1 +
> drivers/dax/dax.c | 24 +++++++++++++++-
> drivers/dax/dax.h | 4 ++-
> drivers/dax/pmem.c | 68 ++++++++++++++++++++++++++++++++++++++++++++-
> fs/open.c | 2 +
> 5 files changed, 95 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h
> index a119ef9..aea927d 100644
> --- a/drivers/dax/dax-private.h
> +++ b/drivers/dax/dax-private.h
> @@ -38,6 +38,7 @@ struct dax_dev {
> int num_resources;
> struct resource res[0];
> void *private;
> + const struct file_operations *fops;
> };
>
> #endif
> diff --git a/drivers/dax/dax.c b/drivers/dax/dax.c
> index f1857e6..b5cd73e 100644
> --- a/drivers/dax/dax.c
> +++ b/drivers/dax/dax.c
> @@ -21,6 +21,7 @@
> #include <linux/dax.h>
> #include <linux/fs.h>
> #include <linux/mm.h>
> +#include <linux/falloc.h>
> #include "dax.h"
> #include "dax-private.h"
>
> @@ -314,6 +315,12 @@ void *dax_dev_get_private(struct device *dev)
> }
> EXPORT_SYMBOL_GPL(dax_dev_get_private);
>
> +struct device *dax_dev_get_device(struct dax_dev *dax_dev)
> +{
> + return &dax_dev->dev;
> +}
> +EXPORT_SYMBOL_GPL(dax_dev_get_device);
> +
> void dax_dev_set_private(struct dax_dev *dax_dev, void *priv)
> {
> dax_dev->private = priv;
> @@ -606,6 +613,17 @@ static int dax_release(struct inode *inode, struct file *filp)
> return 0;
> }
>
> +static long dax_fallocate(struct file *file, int mode,
> + loff_t offset, loff_t len)
> +{
> + struct dax_dev *dax_dev = file->private_data;
> +
> + if (dax_dev->fops)
> + return dax_dev->fops->fallocate(file, mode, offset, len);
> +
> + return -EOPNOTSUPP;
> +}
> +
> static const struct file_operations dax_fops = {
> .llseek = noop_llseek,
> .owner = THIS_MODULE,
> @@ -613,6 +631,7 @@ static const struct file_operations dax_fops = {
> .release = dax_release,
> .get_unmapped_area = dax_get_unmapped_area,
> .mmap = dax_mmap,
> + .fallocate = dax_fallocate,
> };
>
> static void dax_dev_release(struct device *dev)
> @@ -650,7 +669,8 @@ static void unregister_dax_dev(void *dev)
>
> struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
> struct resource *res, int count,
> - const struct attribute_group **groups)
> + const struct attribute_group **groups,
> + const struct file_operations *fops)
> {
> struct device *parent = dax_region->dev;
> struct dax_dev *dax_dev;
> @@ -730,6 +750,8 @@ struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
> if (rc)
> return ERR_PTR(rc);
>
> + dax_dev->fops = fops;
> +
> return dax_dev;
>
> err_cdev:
> diff --git a/drivers/dax/dax.h b/drivers/dax/dax.h
> index c23c7ac..6a31a74 100644
> --- a/drivers/dax/dax.h
> +++ b/drivers/dax/dax.h
> @@ -24,8 +24,10 @@ struct dax_region *alloc_dax_region(struct device *parent,
> void *addr, unsigned long flags);
> struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
> struct resource *res, int count,
> - const struct attribute_group **groups);
> + const struct attribute_group **groups,
> + const struct file_operations *fops);
> void *dax_dev_get_private(struct device *dev);
> void dax_dev_set_private(struct dax_dev *dax_dev, void *priv);
> +struct device *dax_dev_get_device(struct dax_dev *dax_dev);
>
> #endif /* __DAX_H__ */
> diff --git a/drivers/dax/pmem.c b/drivers/dax/pmem.c
> index 5ffb2e9..5ab4900 100644
> --- a/drivers/dax/pmem.c
> +++ b/drivers/dax/pmem.c
> @@ -15,6 +15,7 @@
> #include <linux/module.h>
> #include <linux/pfn_t.h>
> #include <linux/badblocks.h>
> +#include <linux/falloc.h>
> #include "../nvdimm/pfn.h"
> #include "../nvdimm/nd.h"
> #include "dax.h"
> @@ -24,6 +25,69 @@ struct dax_pmem {
> struct percpu_ref ref;
> struct completion cmp;
> struct badblocks bb;
> + resource_size_t start;
> + resource_size_t end;
> +};
> +
> +static void dax_pmem_clear_poison(struct dax_pmem *dax_pmem,
> + loff_t offset, loff_t len)
> +{
> + sector_t sector;
> + long cleared;
> +
> + sector = offset >> 9;
> + cleared = nvdimm_clear_poison(dax_pmem->dev,
> + dax_pmem->start + offset, len);
> +
> + if ((cleared > 0) && (cleared >> 9)) {
> + dev_dbg(dax_pmem->dev, "%s: %#llx clear %ld sector%s\n",
> + __func__, (unsigned long long)sector,
> + cleared >> 9, cleared >> 9 > 1 ? "s" : "");
> + badblocks_clear(&dax_pmem->bb, sector, cleared >> 9);
> + }
> +}
> +
> +static long dax_pmem_fallocate(struct file *file, int mode,
> + loff_t start, loff_t len)
> +{
> + struct dax_dev *dax_dev = file->private_data;
> + struct device *dev;
> + struct dax_pmem *dax_pmem;
> + loff_t end = start + len - 1;
> + loff_t res_size;
> +
> + dev = dax_dev_get_device(dax_dev);
> + dax_pmem = dax_dev_get_private(dev);
> + res_size = dax_pmem->end - dax_pmem->start + 1;
> +
> + dev_dbg(dev, "fallocate mode: %#x, start: %#llx, len: %llu\n",
> + mode, start, len);
> + dev_dbg(dev, "res start: %#llx end: %#llx size: %llu\n",
> + dax_pmem->start, dax_pmem->end, res_size);
> +
> + /* check size boundares */
> + if (start >= dax_pmem->end)
> + return -EINVAL;
> + if (end >= res_size) {
> + if (mode & FALLOC_FL_KEEP_SIZE)
> + len = res_size - start;
> + else
> + return -EINVAL;
> + }
> +
> + switch (mode) {
> + case FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE:
> + dax_pmem_clear_poison(dax_pmem, start, len);
> + break;
> + default:
> + return -EOPNOTSUPP;
> + }
> +
> + return 0;
> +}
> +
> +static const struct file_operations pmem_fops = {
> + .fallocate = dax_pmem_fallocate,
> };
>
> static ssize_t dax_pmem_badblocks_show(struct device *dev,
> @@ -158,8 +222,10 @@ static int dax_pmem_probe(struct device *dev)
>
> /* TODO: support for subdividing a dax region... */
> dax_dev = devm_create_dax_dev(dax_region, &res, 1,
> - dax_pmem_attribute_groups);
> + dax_pmem_attribute_groups, &pmem_fops);
> dax_dev_set_private(dax_dev, dax_pmem);
> + dax_pmem->start = res.start;
> + dax_pmem->end = res.end;
>
> rc = devm_init_badblocks(dev, &dax_pmem->bb);
> if (rc)
> diff --git a/fs/open.c b/fs/open.c
> index d3ed817..15325fd 100644
> --- a/fs/open.c
> +++ b/fs/open.c
> @@ -306,7 +306,7 @@ int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
> * for directories or not.
> */
> if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode) &&
> - !S_ISBLK(inode->i_mode))
> + !S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode))
> return -ENODEV;
>
> /* Check for wrap through zero too */
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] dev-dax: add fallocate support to clear poison
[not found] ` <148219024781.15885.1883996216561314302.stgit-Cxk7aZI4ujnJARH06PadV2t3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
@ 2016-12-20 6:04 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2016-12-20 6:04 UTC (permalink / raw)
To: Dave Jiang; +Cc: linux-nvdimm-y27Ovi1pjclAfugRpC6u6w
On Mon, Dec 19, 2016 at 04:30:47PM -0700, Dave Jiang wrote:
> Adding fallocate support to device-dax. This implements FALLOC_FL_PUNCH_HOLE
> in order to allow clearing of badblocks/poison list.
How exactly does that map to hole punch semantics?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] dev-dax: add fallocate support to clear poison
2016-12-20 0:46 ` Dan Williams
@ 2016-12-20 6:40 ` Christoph Hellwig
-1 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2016-12-20 6:40 UTC (permalink / raw)
To: Dan Williams; +Cc: linux-fsdevel, linux-nvdimm@lists.01.org
On Mon, Dec 19, 2016 at 04:46:00PM -0800, Dan Williams wrote:
> In the case of filesystem-dax (xfs or ext4) a punch hole operation is
> effective for clearing a media error.
Which at best is a third order side effect of what it actually does:
release allocated space. Which is something we can do on various
block devices (SCSI with thin provisioning, device mapper) as well.
> It will deallocate blocks and
> the zeroing that is performed when the blocks are reallocated will
> clear media errors. We want the same semantic for device-dax.
> FALLOC_FL_PUNCH_HOLE triggers the driver stack to clear any media
> errors, although unlike the filesystem case there are no physical
> ranges de-allocated from the device. With support for this subset of
> fallocate we can avoid needing to add a custom ioctl for similar
> functionality.
It's in no way similar functionality. It's absuing an interface for
something entirely different.
So NAK to this series.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] dev-dax: add fallocate support to clear poison
@ 2016-12-20 6:40 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2016-12-20 6:40 UTC (permalink / raw)
To: Dan Williams; +Cc: Dave Jiang, linux-fsdevel, linux-nvdimm@lists.01.org
On Mon, Dec 19, 2016 at 04:46:00PM -0800, Dan Williams wrote:
> In the case of filesystem-dax (xfs or ext4) a punch hole operation is
> effective for clearing a media error.
Which at best is a third order side effect of what it actually does:
release allocated space. Which is something we can do on various
block devices (SCSI with thin provisioning, device mapper) as well.
> It will deallocate blocks and
> the zeroing that is performed when the blocks are reallocated will
> clear media errors. We want the same semantic for device-dax.
> FALLOC_FL_PUNCH_HOLE triggers the driver stack to clear any media
> errors, although unlike the filesystem case there are no physical
> ranges de-allocated from the device. With support for this subset of
> fallocate we can avoid needing to add a custom ioctl for similar
> functionality.
It's in no way similar functionality. It's absuing an interface for
something entirely different.
So NAK to this series.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-12-20 6:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-19 23:30 [PATCH v2 1/3] dev-dax: add support to display badblocks in sysfs for dev-dax Dave Jiang
2016-12-19 23:30 ` [PATCH v2 2/3] nvdimm-testing: providing dax support for nvdimm testing Dave Jiang
2016-12-19 23:30 ` [PATCH v2 3/3] dev-dax: add fallocate support to clear poison Dave Jiang
2016-12-20 0:46 ` Dan Williams
2016-12-20 0:46 ` Dan Williams
2016-12-20 6:40 ` Christoph Hellwig
2016-12-20 6:40 ` Christoph Hellwig
[not found] ` <148219024781.15885.1883996216561314302.stgit-Cxk7aZI4ujnJARH06PadV2t3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
2016-12-20 6:04 ` Christoph Hellwig
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.