From: Dan Williams <dan.j.williams@intel.com>
To: Asahi Lina <lina@asahilina.net>,
Miklos Szeredi <miklos@szeredi.hu>,
"Dan Williams" <dan.j.williams@intel.com>
Cc: Jan Kara <jack@suse.cz>, Alexander Viro <viro@zeniv.linux.org.uk>,
Christian Brauner <brauner@kernel.org>,
Matthew Wilcox <willy@infradead.org>,
Sergio Lopez Pascual <slp@redhat.com>, <asahi@lists.linux.dev>,
<linux-fsdevel@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Asahi Lina <lina@asahilina.net>
Subject: Re: [PATCH] fuse: dax: No-op writepages callback
Date: Tue, 12 Nov 2024 12:11:20 -0800 [thread overview]
Message-ID: <6733b667ea3de_10bc6294d3@dwillia2-xfh.jf.intel.com.notmuch> (raw)
In-Reply-To: <20241113-dax-no-writeback-v1-1-ee2c3a8d9f84@asahilina.net>
Asahi Lina wrote:
> When using FUSE DAX with virtiofs, cache coherency is managed by the
> host. Disk persistence is handled via fsync() and friends, which are
> passed directly via the FUSE layer to the host. Therefore, there's no
> need to do dax_writeback_mapping_range(). All that ends up doing is a
> cache flush operation, which is not caught by KVM and doesn't do much,
> since the host and guest are already cache-coherent.
>
> Since dax_writeback_mapping_range() checks that the inode block size is
> equal to PAGE_SIZE, this fixes a spurious WARN when virtiofs is used
> with a mismatched guest PAGE_SIZE and virtiofs backing FS block size
> (this happens, for example, when it's a tmpfs and the host and guest
> have a different PAGE_SIZE). FUSE DAX does not require any particular FS
> block size, since it always performs DAX mappings in aligned 2MiB
> blocks.
>
> See discussion in [1].
>
> [1] https://lore.kernel.org/lkml/20241101-dax-page-size-v1-1-eedbd0c6b08f@asahilina.net/T/#u
>
> Suggested-by: Dan Williams <dan.j.williams@intel.com>
> Signed-off-by: Asahi Lina <lina@asahilina.net>
> ---
> fs/fuse/dax.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
Looks good to me, thanks for the discussion on this.
Acked-by: Dan Williams <dan.j.williams@intel.com>
next prev parent reply other threads:[~2024-11-12 20:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 19:55 Asahi Lina
2024-11-12 20:11 ` Dan Williams [this message]
2024-11-13 10:48 ` Miklos Szeredi
2024-11-13 15:17 ` Asahi Lina
2024-11-22 11:31 ` Asahi Lina
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=6733b667ea3de_10bc6294d3@dwillia2-xfh.jf.intel.com.notmuch \
--to=dan.j.williams@intel.com \
--cc=asahi@lists.linux.dev \
--cc=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=lina@asahilina.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=slp@redhat.com \
--cc=viro@zeniv.linux.org.uk \
--cc=willy@infradead.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®