Delivery reports about your e-mail

2017-10-11 Thread Bounced mail
The original message was received at Thu, 12 Oct 2017 12:25:23 +0800 from lists.01.org [187.53.147.89] - The following addresses had permanent fatal errors - - Transcript of session follows - while talking to lists.01.org.: >>> MAIL From:"Bounced

Re: [PATCH v9 2/6] fs, mm: pass fd to ->mmap_validate()

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 7:17 PM, Dan Williams wrote: > On Wed, Oct 11, 2017 at 6:28 PM, Dan Williams > wrote: >> On Wed, Oct 11, 2017 at 6:21 PM, Al Viro wrote: >>> On Wed, Oct 11, 2017 at 05:47:18PM -0700, Dan

Re: [PATCH v9 2/6] fs, mm: pass fd to ->mmap_validate()

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 6:28 PM, Dan Williams wrote: > On Wed, Oct 11, 2017 at 6:21 PM, Al Viro wrote: >> On Wed, Oct 11, 2017 at 05:47:18PM -0700, Dan Williams wrote: >>> The MAP_DIRECT mechanism for mmap intends to use a file lease to prevent

Re: [PATCH v9 2/6] fs, mm: pass fd to ->mmap_validate()

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 6:21 PM, Al Viro wrote: > On Wed, Oct 11, 2017 at 05:47:18PM -0700, Dan Williams wrote: >> The MAP_DIRECT mechanism for mmap intends to use a file lease to prevent >> block map changes while the file is mapped. It requires the fd to setup >> an

Re: [PATCH v9 2/6] fs, mm: pass fd to ->mmap_validate()

2017-10-11 Thread Al Viro
On Wed, Oct 11, 2017 at 05:47:18PM -0700, Dan Williams wrote: > The MAP_DIRECT mechanism for mmap intends to use a file lease to prevent > block map changes while the file is mapped. It requires the fd to setup > an fasync_struct for signalling lease break events to the lease holder. *UGH* That

[PATCH v9 5/6] fs, xfs, iomap: introduce break_layout_nowait()

2017-10-11 Thread Dan Williams
In preparation for using FL_LAYOUT leases to allow coordination between the kernel and processes doing userspace flushes / RDMA with DAX mappings, add this helper that can be used to start the lease break process in contexts where we can not sleep waiting for the lease break timeout. This is

[PATCH v9 6/6] xfs: wire up MAP_DIRECT

2017-10-11 Thread Dan Williams
MAP_DIRECT is an mmap(2) flag with the following semantics: MAP_DIRECT When specified with MAP_SHARED_VALIDATE, sets up a file lease with the same lifetime as the mapping. Unlike a typical F_RDLCK lease this lease is broken when a "lease breaker" attempts to write(2), change the block

[PATCH v9 2/6] fs, mm: pass fd to ->mmap_validate()

2017-10-11 Thread Dan Williams
The MAP_DIRECT mechanism for mmap intends to use a file lease to prevent block map changes while the file is mapped. It requires the fd to setup an fasync_struct for signalling lease break events to the lease holder. Cc: Jan Kara Cc: Jeff Moyer Cc: Christoph

[PATCH v9 1/6] mm: introduce MAP_SHARED_VALIDATE, a mechanism to safely define new mmap flags

2017-10-11 Thread Dan Williams
The mmap(2) syscall suffers from the ABI anti-pattern of not validating unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT need a mechanism to define new behavior that is known to fail on older kernels without the support. Define a new MAP_SHARED_VALIDATE flag pattern that is

[PATCH v9 4/6] xfs: prepare xfs_break_layouts() for reuse with MAP_DIRECT

2017-10-11 Thread Dan Williams
Move xfs_break_layouts() to its own compilation unit so that it can be used for both pnfs layouts and MAP_DIRECT mappings. Cc: Jan Kara Cc: Jeff Moyer Cc: Christoph Hellwig Cc: Dave Chinner Cc: "Darrick J. Wong"

[PATCH v9 0/6] MAP_DIRECT for DAX userspace flush

2017-10-11 Thread Dan Williams
Changes since v8 [1]: * Move MAP_SHARED_VALIDATE definition next to MAP_SHARED in all arch headers (Jan) * Include xfs_layout.h directly in all the files that call xfs_break_layouts() (Dave) * Clarify / add more comments to the MAP_DIRECT checks at fault time (Dave) * Rename

[PATCH v9 3/6] fs: MAP_DIRECT core

2017-10-11 Thread Dan Williams
Introduce a set of helper apis for filesystems to establish FL_LAYOUT leases to protect against writes and block map updates while a MAP_DIRECT mapping is established. While the lease protects against the syscall write path and fallocate it does not protect against allocating write-faults, so this

Re: ffsb job does not exit on xfs 4.14-rc1+

2017-10-11 Thread Dave Chinner
On Wed, Oct 11, 2017 at 09:54:15PM +0800, Xiong Zhou wrote: > On Mon, Sep 25, 2017 at 10:49:03AM +0200, Carlos Maiolino wrote: > > On Mon, Sep 25, 2017 at 01:40:06AM +, Xiong Zhou wrote: > > > Hi, > > > > > > ffsb test won't exit like this on Linus tree 4.14-rc1+. > > > Latest commit

Re: [RFC] KVM "fake DAX" device flushing

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 11:51 AM, Pankaj Gupta wrote: > We are sharing the prototype version of 'fake DAX' flushing > interface for the initial feedback. This is still work in progress > and not yet ready for merging. > > Protoype right now just implements basic functionality

[RFC] KVM "fake DAX" device flushing

2017-10-11 Thread Pankaj Gupta
We are sharing the prototype version of 'fake DAX' flushing interface for the initial feedback. This is still work in progress and not yet ready for merging. Protoype right now just implements basic functionality without advanced features with two major parts: - Qemu virtio-pmem device It

Re: [PATCH] libnvdimm: add smart payload fields added in DSM 1.6

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 10:57 AM, Dave Jiang wrote: > NVDIMM DSM interface v1.6 added additional smart health fields. Updating the > smart payload data structure accordingly. I'll also add a note when I merge this that the only reason we are maintaining this structure in

[PATCH] libnvdimm: add smart payload fields added in DSM 1.6

2017-10-11 Thread Dave Jiang
NVDIMM DSM interface v1.6 added additional smart health fields. Updating the smart payload data structure accordingly. Signed-off-by: Dave Jiang --- include/uapi/linux/ndctl.h |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

Re: nfit test deadlock

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 9:24 AM, Ross Zwisler wrote: > Hey Dan, > > I was getting the ndctl unit tests working again in my setup today, and on the > first run of ndctl's "make check" hit a deadlock. This seems to be very easy > to reproduce, all you have to do is

nfit test deadlock

2017-10-11 Thread Ross Zwisler
Hey Dan, I was getting the ndctl unit tests working again in my setup today, and on the first run of ndctl's "make check" hit a deadlock. This seems to be very easy to reproduce, all you have to do is specify a number of jobs to make that is larger than 1 (which I was accidentally doing via an

Re: [PATCH v8 13/14] IB/core: use MAP_DIRECT to fix / enable RDMA to DAX mappings

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 4:54 AM, Joerg Roedel wrote: > On Tue, Oct 10, 2017 at 07:50:12AM -0700, Dan Williams wrote: >> +static void ib_umem_lease_break(void *__umem) >> +{ >> + struct ib_umem *umem = umem; >> + struct ib_device *idev = umem->context->device; >> +

Re: [PATCH] Fix mpage_writepage() for pages with buffers

2017-10-11 Thread Matthew Wilcox
On Tue, Oct 10, 2017 at 01:31:44PM -0700, Linus Torvalds wrote: > On Tue, Oct 10, 2017 at 12:44 PM, Andrew Morton > wrote: > > > > This is all pretty mature code (isn't it?). Any idea why this bug > > popped up now? I have no idea why it's suddenly popped up. It

Re: [PATCH v8 01/14] mm: introduce MAP_SHARED_VALIDATE, a mechanism to safely define new mmap flags

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 12:43 AM, Jan Kara wrote: > On Tue 10-10-17 07:49:01, Dan Williams wrote: >> The mmap(2) syscall suffers from the ABI anti-pattern of not validating >> unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT need a >> mechanism to define new behavior

Re: ffsb job does not exit on xfs 4.14-rc1+

2017-10-11 Thread Dan Williams
On Wed, Oct 11, 2017 at 6:54 AM, Xiong Zhou wrote: > On Mon, Sep 25, 2017 at 10:49:03AM +0200, Carlos Maiolino wrote: >> On Mon, Sep 25, 2017 at 01:40:06AM +, Xiong Zhou wrote: >> > Hi, >> > >> > ffsb test won't exit like this on Linus tree 4.14-rc1+. >> > Latest commit

Re: [PATCH v8 13/14] IB/core: use MAP_DIRECT to fix / enable RDMA to DAX mappings

2017-10-11 Thread Joerg Roedel
On Tue, Oct 10, 2017 at 07:50:12AM -0700, Dan Williams wrote: > +static void ib_umem_lease_break(void *__umem) > +{ > + struct ib_umem *umem = umem; > + struct ib_device *idev = umem->context->device; > + struct device *dev = idev->dma_device; > + struct scatterlist *sgl =

转发:几何尺寸与公差

2017-10-11 Thread 张�c佳
Ö£ºlinux-nvdimm@lists.01.org Ïêϸ ¿Î³Ìʱ¼ä ¼°±¨ÃûÐÅÏ¢ Çë²éÔĸ½¼þ ___ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm

Re: [PATCH v8 01/14] mm: introduce MAP_SHARED_VALIDATE, a mechanism to safely define new mmap flags

2017-10-11 Thread Jan Kara
On Tue 10-10-17 07:49:01, Dan Williams wrote: > The mmap(2) syscall suffers from the ABI anti-pattern of not validating > unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT need a > mechanism to define new behavior that is known to fail on older kernels > without the support. Define a