Re: [Virtio-fs] [PATCH] dax: dax_layout_busy_page() should not unmap cow pages

2019-08-02 Thread Dan Williams
On Fri, Aug 2, 2019 at 12:30 PM Vivek Goyal wrote: > > As of now dax_layout_busy_page() calls unmap_mapping_range() with last > argument as 1, which says even unmap cow pages. I am wondering who needs > to get rid of cow pages as well. > > I noticed one interesting side affect of this. I mount

Re: [Virtio-fs] [PATCH] dax: dax_layout_busy_page() should not unmap cow pages

2019-08-05 Thread Dan Williams
On Mon, Aug 5, 2019 at 12:17 PM Boaz Harrosh wrote: > > On 05/08/2019 21:49, Vivek Goyal wrote: > > On Mon, Aug 05, 2019 at 02:53:06PM +0300, Boaz Harrosh wrote: > <> > >> So as I understand the man page: > >> fallocate(FL_PUNCH_HOLE); means user is asking to get rid also of COW > >> pages. > >>

Re: [Virtio-fs] [PATCH 02/19] dax: Pass dax_dev to dax_writeback_mapping_range()

2019-08-26 Thread Dan Williams
[ add Jan ] On Mon, Aug 26, 2019 at 1:58 PM Vivek Goyal wrote: > > On Mon, Aug 26, 2019 at 04:33:26PM -0400, Vivek Goyal wrote: > > On Mon, Aug 26, 2019 at 04:53:16AM -0700, Christoph Hellwig wrote: > > > On Wed, Aug 21, 2019 at 01:57:03PM -0400, Vivek Goyal wrote: > > > > Right now

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-15 Thread Dan Williams
On Wed, Jan 15, 2020 at 11:56 AM Vivek Goyal wrote: [..] > > Even the Red Hat > > installation guide example shows mounting on pmem0 directly. [1] > > Below that example it also says. > > "When creating partitions on a pmem device to be used for direct access, > partitions must be aligned on page

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-16 Thread Dan Williams
On Thu, Jan 16, 2020 at 10:39 AM Vivek Goyal wrote: > > On Thu, Jan 16, 2020 at 10:09:46AM -0800, Dan Williams wrote: > > On Wed, Jan 15, 2020 at 1:08 PM Jeff Moyer wrote: > > > > > > Hi, Dan, > > > > > > Dan Williams writes: > > &

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-09 Thread Dan Williams
On Thu, Jan 9, 2020 at 3:27 AM Jan Kara wrote: > > On Tue 07-01-20 10:49:55, Dan Williams wrote: > > On Tue, Jan 7, 2020 at 10:33 AM Vivek Goyal wrote: > > > W.r.t partitioning, bdev_dax_pgoff() seems to be the pain point where > > > dax code refers back to block

Re: [Virtio-fs] [PATCH 02/19] dax: Pass dax_dev to dax_writeback_mapping_range()

2020-01-03 Thread Dan Williams
On Fri, Jan 3, 2020 at 6:12 AM Vivek Goyal wrote: > > On Mon, Aug 26, 2019 at 04:58:29PM -0400, Vivek Goyal wrote: > > On Mon, Aug 26, 2019 at 04:33:26PM -0400, Vivek Goyal wrote: > > > On Mon, Aug 26, 2019 at 04:53:16AM -0700, Christoph Hellwig wrote: > > > > On Wed, Aug 21, 2019 at 01:57:03PM

Re: [Virtio-fs] [PATCH 02/19] dax: Pass dax_dev to dax_writeback_mapping_range()

2020-01-03 Thread Dan Williams
On Fri, Jan 3, 2020 at 10:12 AM Dan Williams wrote: > > On Fri, Jan 3, 2020 at 6:12 AM Vivek Goyal wrote: [..] > > Hi Dan, > > > > Ping for this patch. I see christoph and Jan acked it. Can we take it. Not > > sure how to get ack from ext4 developers. > >

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-07 Thread Dan Williams
On Tue, Jan 7, 2020 at 4:52 AM Christoph Hellwig wrote: > > On Mon, Dec 16, 2019 at 01:10:14PM -0500, Vivek Goyal wrote: > > > Agree. In retrospect it was my laziness in the dax-device > > > implementation to expect the block-device to be available. > > > > > > It looks like fs_dax_get_by_bdev()

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-07 Thread Dan Williams
On Tue, Jan 7, 2020 at 9:08 AM Darrick J. Wong wrote: > > On Tue, Jan 07, 2020 at 06:22:54AM -0800, Dan Williams wrote: > > On Tue, Jan 7, 2020 at 4:52 AM Christoph Hellwig wrote: > > > > > > On Mon, Dec 16, 2019 at 01:10:14PM -0500, Vivek Goyal wrote: > >

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-07 Thread Dan Williams
On Tue, Jan 7, 2020 at 10:02 AM Vivek Goyal wrote: > > On Tue, Jan 07, 2020 at 09:29:17AM -0800, Dan Williams wrote: > > On Tue, Jan 7, 2020 at 9:08 AM Darrick J. Wong > > wrote: > > > > > > On Tue, Jan 07, 2020 at 06:22:54AM -0800, Dan Williams wrote: &g

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-07 Thread Dan Williams
On Tue, Jan 7, 2020 at 10:33 AM Vivek Goyal wrote: > > On Tue, Jan 07, 2020 at 10:07:18AM -0800, Dan Williams wrote: > > On Tue, Jan 7, 2020 at 10:02 AM Vivek Goyal wrote: > > > > > > On Tue, Jan 07, 2020 at 09:29:17AM -0800, Dan Williams wrote: > > > >

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-07 Thread Dan Williams
On Tue, Jan 7, 2020 at 11:03 AM Darrick J. Wong wrote: [..] > > That can already happen today. If you do not properly align the > > partition then dax operations will be disabled. > > Er... is this conversation getting confused? I was talking about > kpartx's /dev/mapper/pmem0p1 being a straight

Re: [Virtio-fs] [PATCH 01/19] dax: remove block device dependencies

2020-01-07 Thread Dan Williams
On Tue, Jan 7, 2020 at 11:46 AM Dan Williams wrote: [..] > > I'd say deprecate the > > kernel automounting partitions, but I guess it already does that, and > > Ok, now I don't know why automounting is leaking into this discussion? > > > removing it would break /someth

Re: [Virtio-fs] [PATCH v3 2/3] dax: Add a wakeup mode parameter to put_unlocked_entry()

2021-05-17 Thread Dan Williams
On Wed, Apr 21, 2021 at 11:25 PM Christoph Hellwig wrote: > > On Wed, Apr 21, 2021 at 12:09:54PM -0700, Dan Williams wrote: > > Can you get in the habit of not replying inline with new patches like > > this? Collect the review feedback, take a pause, and resend the full > >

Re: [Virtio-fs] [PATCH v4 0/3] dax: Fix missed wakeup in put_unlocked_entry()

2021-04-23 Thread Dan Williams
On Fri, Apr 23, 2021 at 6:07 AM Vivek Goyal wrote: > > Hi, > > This is V4 of the patches. Posted V3 here. > > https://lore.kernel.org/linux-fsdevel/20210419213636.1514816-1-vgo...@redhat.com/ > > Changes since V3 are. > > - Renamed "enum dax_entry_wake_mode" to "enum dax_wake_mode" (Matthew

Re: [Virtio-fs] [PATCH][v2] dax: Fix missed wakeup during dax entry invalidation

2021-04-19 Thread Dan Williams
On Mon, Apr 19, 2021 at 11:45 AM Vivek Goyal wrote: > > This is V2 of the patch. Posted V1 here. > > https://lore.kernel.org/linux-fsdevel/20210416173524.ga1379...@redhat.com/ > > Based on feedback from Dan and Jan, modified the patch to wake up > all waiters when dax entry is invalidated. This

Re: [Virtio-fs] [PATCH] dax: Fix missed wakeup in put_unlocked_entry()

2021-04-16 Thread Dan Williams
On Fri, Apr 16, 2021 at 10:35 AM Vivek Goyal wrote: > > I am seeing missed wakeups which ultimately lead to a deadlock when I am > using virtiofs with DAX enabled and running "make -j". I had to mount > virtiofs as rootfs and also reduce to dax window size to 32M to reproduce > the problem

Re: [Virtio-fs] [PATCH v3 2/3] dax: Add a wakeup mode parameter to put_unlocked_entry()

2021-04-22 Thread Dan Williams
On Wed, Apr 21, 2021 at 11:25 PM Christoph Hellwig wrote: > > On Wed, Apr 21, 2021 at 12:09:54PM -0700, Dan Williams wrote: > > Can you get in the habit of not replying inline with new patches like > > this? Collect the review feedback, take a pause, and resend the full > >

Re: [Virtio-fs] [PATCH v3 2/3] dax: Add a wakeup mode parameter to put_unlocked_entry()

2021-04-21 Thread Dan Williams
; > > patches we want to wake up all waiters at one callsite. Hence, add a > > > parameter to the function. > > > > > > This patch does not introduce any change of behavior. > > > > > > Suggested-by: Dan Williams > > > Signed-off-by: Viv