| To: | linux-nvdimm@xxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH v2 2/5] dax: fallback from pmd to pte on error |
| From: | Vishal Verma <vishal.l.verma@xxxxxxxxx> |
| Date: | Tue, 29 Mar 2016 19:59:47 -0600 |
| Cc: | Dan Williams <dan.j.williams@xxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>, Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Jan Kara <jack@xxxxxxx>, Jens Axboe <axboe@xxxxxx>, Al Viro <viro@xxxxxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1459303190-20072-1-git-send-email-vishal.l.verma@xxxxxxxxx> |
| References: | <1459303190-20072-1-git-send-email-vishal.l.verma@xxxxxxxxx> |
From: Dan Williams <dan.j.williams@xxxxxxxxx>
In preparation for consulting a badblocks list in pmem_direct_access(),
teach dax_pmd_fault() to fallback rather than fail immediately upon
encountering an error. The thought being that reducing the span of the
dax request may avoid the error region.
Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
---
fs/dax.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/dax.c b/fs/dax.c
index 90322eb..ec6417b 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -945,8 +945,8 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned
long address,
long length = dax_map_atomic(bdev, &dax);
if (length < 0) {
- result = VM_FAULT_SIGBUS;
- goto out;
+ dax_pmd_dbg(&bh, address, "dax-error fallback");
+ goto fallback;
}
if (length < PMD_SIZE) {
dax_pmd_dbg(&bh, address, "dax-length too small");
--
2.5.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] xfs: disallow rw remount on fs with unknown ro-compat features, Eric Sandeen |
|---|---|
| Next by Date: | [PATCH v2 5/5] dax: handle media errors in dax_do_io, Vishal Verma |
| Previous by Thread: | [PATCH v2 0/5] dax: handling of media errors, Vishal Verma |
| Next by Thread: | [PATCH v2 5/5] dax: handle media errors in dax_do_io, Vishal Verma |
| Indexes: | [Date] [Thread] [Top] [All Lists] |