From: Dan Williams <dan.j.williams@intel.com> To: linux-nvdimm@lists.01.org Cc: david@fromorbit.com, linux-kernel@vger.kernel.org, hch@lst.de Subject: [PATCH 08/13] fs/dax: remove wmb_pmem() Date: Sat, 04 Jun 2016 13:53:15 -0700 [thread overview] Message-ID: <146507359516.8347.7034634737785410916.stgit@dwillia2-desk3.amr.corp.intel.com> (raw) In-Reply-To: <146507355220.8347.12117020810872172684.stgit@dwillia2-desk3.amr.corp.intel.com> Flushing posted-write queues is now deferred to REQ_FLUSH context, or otherwise handled by an ADR event at the platform level. Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- fs/dax.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 761495bf5eb9..434f421da660 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -147,7 +147,7 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, struct buffer_head *bh) { loff_t pos = start, max = start, bh_max = start; - bool hole = false, need_wmb = false; + bool hole = false; struct block_device *bdev = NULL; int rw = iov_iter_rw(iter), rc; long map_len = 0; @@ -213,7 +213,6 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, if (iov_iter_rw(iter) == WRITE) { len = copy_from_iter_pmem(dax.addr, max - pos, iter); - need_wmb = true; } else if (!hole) len = copy_to_iter((void __force *) dax.addr, max - pos, iter); @@ -230,8 +229,6 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, dax.addr += len; } - if (need_wmb) - wmb_pmem(); dax_unmap_atomic(bdev, &dax); return (pos == start) ? rc : pos - start; @@ -783,7 +780,6 @@ int dax_writeback_mapping_range(struct address_space *mapping, return ret; } } - wmb_pmem(); return 0; } EXPORT_SYMBOL_GPL(dax_writeback_mapping_range); @@ -1227,7 +1223,6 @@ int __dax_zero_page_range(struct block_device *bdev, sector_t sector, if (dax_map_atomic(bdev, &dax) < 0) return PTR_ERR(dax.addr); clear_pmem(dax.addr + offset, length); - wmb_pmem(); dax_unmap_atomic(bdev, &dax); } return 0; _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm
WARNING: multiple messages have this Message-ID (diff)
From: Dan Williams <dan.j.williams@intel.com> To: linux-nvdimm@ml01.01.org Cc: Ross Zwisler <ross.zwisler@linux.intel.com>, david@fromorbit.com, linux-kernel@vger.kernel.org, hch@lst.de Subject: [PATCH 08/13] fs/dax: remove wmb_pmem() Date: Sat, 04 Jun 2016 13:53:15 -0700 [thread overview] Message-ID: <146507359516.8347.7034634737785410916.stgit@dwillia2-desk3.amr.corp.intel.com> (raw) In-Reply-To: <146507355220.8347.12117020810872172684.stgit@dwillia2-desk3.amr.corp.intel.com> Flushing posted-write queues is now deferred to REQ_FLUSH context, or otherwise handled by an ADR event at the platform level. Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- fs/dax.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 761495bf5eb9..434f421da660 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -147,7 +147,7 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, struct buffer_head *bh) { loff_t pos = start, max = start, bh_max = start; - bool hole = false, need_wmb = false; + bool hole = false; struct block_device *bdev = NULL; int rw = iov_iter_rw(iter), rc; long map_len = 0; @@ -213,7 +213,6 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, if (iov_iter_rw(iter) == WRITE) { len = copy_from_iter_pmem(dax.addr, max - pos, iter); - need_wmb = true; } else if (!hole) len = copy_to_iter((void __force *) dax.addr, max - pos, iter); @@ -230,8 +229,6 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, dax.addr += len; } - if (need_wmb) - wmb_pmem(); dax_unmap_atomic(bdev, &dax); return (pos == start) ? rc : pos - start; @@ -783,7 +780,6 @@ int dax_writeback_mapping_range(struct address_space *mapping, return ret; } } - wmb_pmem(); return 0; } EXPORT_SYMBOL_GPL(dax_writeback_mapping_range); @@ -1227,7 +1223,6 @@ int __dax_zero_page_range(struct block_device *bdev, sector_t sector, if (dax_map_atomic(bdev, &dax) < 0) return PTR_ERR(dax.addr); clear_pmem(dax.addr + offset, length); - wmb_pmem(); dax_unmap_atomic(bdev, &dax); } return 0;
next prev parent reply other threads:[~2016-06-04 20:54 UTC|newest] Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-06-04 20:52 [PATCH 00/13] deprecate pcommit Dan Williams 2016-06-04 20:52 ` Dan Williams 2016-06-04 20:52 ` [PATCH 01/13] driver core, libnvdimm: disable manual unbind of dimms while region active Dan Williams 2016-06-04 20:52 ` Dan Williams 2016-06-04 21:10 ` Greg Kroah-Hartman 2016-06-04 21:10 ` Greg Kroah-Hartman 2016-06-04 21:39 ` Dan Williams 2016-06-04 21:39 ` Dan Williams 2016-06-04 21:45 ` Greg Kroah-Hartman 2016-06-04 21:45 ` Greg Kroah-Hartman 2016-06-04 21:48 ` Dan Williams 2016-06-04 21:48 ` Dan Williams 2016-06-04 21:50 ` kbuild test robot 2016-06-04 21:50 ` kbuild test robot 2016-06-06 19:25 ` Linda Knippers 2016-06-06 19:25 ` Linda Knippers 2016-06-06 19:31 ` Dan Williams 2016-06-06 19:31 ` Dan Williams 2016-06-06 19:36 ` Dan Williams 2016-06-06 19:36 ` Dan Williams 2016-06-06 19:36 ` Linda Knippers 2016-06-06 19:36 ` Linda Knippers 2016-06-06 19:46 ` Dan Williams 2016-06-06 19:46 ` Dan Williams 2016-06-06 20:20 ` Linda Knippers 2016-06-06 20:20 ` Linda Knippers 2016-06-06 20:36 ` Dan Williams 2016-06-06 20:36 ` Dan Williams 2016-06-06 21:15 ` Linda Knippers 2016-06-06 21:15 ` Linda Knippers 2016-06-04 20:52 ` [PATCH 02/13] nfit: always associate flush hints Dan Williams 2016-06-04 20:52 ` Dan Williams 2016-06-04 20:52 ` [PATCH 03/13] libnvdimm: introduce nvdimm_flush() Dan Williams 2016-06-04 20:52 ` Dan Williams 2016-06-06 17:45 ` Jeff Moyer 2016-06-04 20:52 ` [PATCH 04/13] libnvdimm, nfit: move flush hint mapping to dimm driver Dan Williams 2016-06-04 20:52 ` Dan Williams 2016-06-04 21:29 ` kbuild test robot 2016-06-04 21:29 ` kbuild test robot 2016-06-04 21:40 ` kbuild test robot 2016-06-04 21:40 ` kbuild test robot 2016-06-04 21:49 ` kbuild test robot 2016-06-04 21:49 ` kbuild test robot 2016-06-07 18:11 ` Kani, Toshimitsu 2016-06-07 18:11 ` Kani, Toshimitsu 2016-06-07 18:15 ` Dan Williams 2016-06-07 18:15 ` Dan Williams 2016-06-04 20:52 ` [PATCH 05/13] tools/testing/nvdimm: simulate multiple flush hints per-dimm Dan Williams 2016-06-04 20:52 ` Dan Williams 2016-06-04 20:53 ` [PATCH 06/13] libnvdimm: cycle flush hints per-cpu Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-04 20:53 ` [PATCH 07/13] libnvdimm, pmem: use REQ_FUA, REQ_FLUSH for nvdimm_flush() Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-04 20:53 ` Dan Williams [this message] 2016-06-04 20:53 ` [PATCH 08/13] fs/dax: remove wmb_pmem() Dan Williams 2016-06-04 20:53 ` [PATCH 09/13] libnvdimm, pmem: use nvdimm_flush() for namespace I/O writes Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-04 20:53 ` [PATCH 10/13] pmem: kill wmb_pmem() Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-04 20:53 ` [PATCH 11/13] Revert "KVM: x86: add pcommit support" Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-06 15:14 ` Paolo Bonzini 2016-06-06 16:14 ` Dan Williams 2016-06-04 20:53 ` [PATCH 12/13] x86/insn: remove pcommit Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-04 20:53 ` [PATCH 13/13] pmem: kill __pmem address space Dan Williams 2016-06-04 20:53 ` Dan Williams 2016-06-04 22:18 ` kbuild test robot 2016-06-04 22:18 ` kbuild test robot 2016-06-05 17:41 ` [PATCH 00/13] deprecate pcommit Andy Lutomirski 2016-06-05 17:41 ` Andy Lutomirski 2016-06-05 18:48 ` Rudoff, Andy 2016-06-05 18:48 ` Rudoff, Andy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=146507359516.8347.7034634737785410916.stgit@dwillia2-desk3.amr.corp.intel.com \ --to=dan.j.williams@intel.com \ --cc=david@fromorbit.com \ --cc=hch@lst.de \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-nvdimm@lists.01.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.