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


Groups > linux.kernel > #1306970

[PATCH] bugfix dax fault page should be no cache

From <chenjie6@huawei.com>
Newsgroups linux.kernel
Subject [PATCH] bugfix dax fault page should be no cache
Date 2016-01-12 04:50 +0100
Message-ID <qPY81-3Kg-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: chenjie <chenjie6@huawei.com>

We show the pte: 
	*pte=01600000159c8fd3
The page should be no_cache attr,it will be better. 

Cc: <stable@vger.kernel.org>
Signed-off-by: chenjie <chenjie6@huawei.com>
---
 fs/dax.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/dax.c b/fs/dax.c
index 43671b6..179ced6 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -328,6 +328,8 @@ static int dax_insert_mapping(struct inode *inode, struct buffer_head *bh,
 		wmb_pmem();
 	}
 
+	vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
+
 	error = vm_insert_mixed(vma, vaddr, pfn);
 
  out:
-- 
1.8.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] bugfix dax fault page should be no cache <chenjie6@huawei.com> - 2016-01-12 04:50 +0100
  Re: [PATCH] bugfix dax fault page should be no cache Matthew Wilcox <willy@linux.intel.com> - 2016-01-12 14:00 +0100
    Re: [PATCH] bugfix dax fault page should be no cache "Chenjie (K)" <chenjie6@huawei.com> - 2016-01-13 04:50 +0100
      Re: [PATCH] bugfix dax fault page should be no cache Matthew Wilcox <willy@linux.intel.com> - 2016-01-13 17:40 +0100

csiph-web