Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1379891 > unrolled thread

Re: [PATCH v2 2/5] dax: fallback from pmd to pte on error

Started byJeff Moyer <jmoyer@redhat.com>
First post2016-04-15 17:00 +0200
Last post2016-04-15 17:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 2/5] dax: fallback from pmd to pte on error Jeff Moyer <jmoyer@redhat.com> - 2016-04-15 17:00 +0200

#1379891 — Re: [PATCH v2 2/5] dax: fallback from pmd to pte on error

FromJeff Moyer <jmoyer@redhat.com>
Date2016-04-15 17:00 +0200
SubjectRe: [PATCH v2 2/5] dax: fallback from pmd to pte on error
Message-ID<rodnY-4BO-11@gated-at.bofh.it>
Vishal Verma <vishal.l.verma@intel.com> writes:

> From: Dan Williams <dan.j.williams@intel.com>
>
> 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@intel.com>

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>

> ---
>  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");

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web