All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dax: put back __GFP_IO in the dax fault handler
@ 2017-01-24  0:06 Dave Jiang
  2017-01-24 18:31 ` Ross Zwisler
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jiang @ 2017-01-24  0:06 UTC (permalink / raw)
  To: dan.j.williams; +Cc: linux-nvdimm

__GFP_IO got accidentally dropped in the dax fault handler during the
vmf parameter conversion. Putting it back.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 fs/dax.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/dax.c b/fs/dax.c
index 2e90f7a..20e9db8 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -1332,6 +1332,7 @@ static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops)
 	loff_t pos;
 	int error;
 
+	vmf->gfp_mask |= __GFP_IO;
 	/*
 	 * Check whether offset isn't beyond end of file now. Caller is
 	 * supposed to hold locks serializing us with truncate / punch hole so
@@ -1423,6 +1424,7 @@ static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops)
 	}
 out:
 	trace_dax_pmd_fault_done(inode, vmf, max_pgoff, result);
+	vmf->gfp_mask &= ~__GFP_IO;
 	return result;
 }
 #else

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-24 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-24  0:06 [PATCH] dax: put back __GFP_IO in the dax fault handler Dave Jiang
2017-01-24 18:31 ` Ross Zwisler
2017-01-24 18:42   ` Jiang, Dave

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.