| To: | Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>, Dan Williams <dan.j.williams@xxxxxxxxx>, Jan Kara <jack@xxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, "J. Bruce Fields" <bfields@xxxxxxxxxxxx>, "Theodore Ts'o" <tytso@xxxxxxx>, Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>, Andreas Dilger <adilger.kernel@xxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Jan Kara <jack@xxxxxxxx>, Jeff Layton <jlayton@xxxxxxxxxxxxxxx>, Matthew Wilcox <willy@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, linux-ext4 <linux-ext4@xxxxxxxxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, Linux MM <linux-mm@xxxxxxxxx>, "linux-nvdimm@xxxxxxxxxxxx" <linux-nvdimm@xxxxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, XFS Developers <xfs@xxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v6 4/7] dax: add support for fsync/msync |
| From: | Dan Williams <dan.j.williams@xxxxxxxxx> |
| Date: | Tue, 5 Jan 2016 10:22:30 -0800 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wwIwDfBURC4+MbEEAqUS9yH24ezgdnAFDEptXW06h2M=; b=jNODfjuHMUuWU3rF06Ka3EinpQDH8RRATEb1r8S91pyOrrCIiYxy7VKkYrsMRrMfO1 71REORD7sMzdNnEEbnNUgJJEpdOFBCKwyYhR9QRqjup/AglGh8EHJ3RJqOV4KTb0XnGY LFbQQy8si8629bSFfc4dCyHWt9Ejk2bvLwcTX3u9+EFALXfSForPF4GCaBum2PHPXdRy oesG7WYMyjeXqvgCzWcCztvgTOQuwzYnVlSzqjnZmNKQ1ObWN7dfUddQgcQS+DEyPgFy FmpNw89s5ejE4e0CORTHNztt7pSWO8w24/UVnyeixW62fRXafHgPx2GFOkbzu8KXzMcS ErLg== |
| In-reply-to: | <20160105181430.GC6462@xxxxxxxxxxxxxxx> |
| References: | <1450899560-26708-1-git-send-email-ross.zwisler@xxxxxxxxxxxxxxx> <1450899560-26708-5-git-send-email-ross.zwisler@xxxxxxxxxxxxxxx> <20160105111358.GD2724@xxxxxxxxxxxxx> <20160105171235.GB6462@xxxxxxxxxxxxxxx> <CAPcyv4jAAAtRc7GSOqDZixxpQfM4bzHtkwmrsjLJ0Bqba+0KRA@xxxxxxxxxxxxxx> <20160105181430.GC6462@xxxxxxxxxxxxxxx> |
On Tue, Jan 5, 2016 at 10:14 AM, Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> wrote: > On Tue, Jan 05, 2016 at 09:20:47AM -0800, Dan Williams wrote: [..] >> My concern is whether flushing potentially invalid virtual addresses >> is problematic on some architectures. Maybe it's just FUD, but it's >> less work in my opinion to just revalidate the address versus auditing >> each arch for this concern. > > I don't think that the addresses have the potential of being invalid from the > driver's point of view - we are still holding a reference on the block queue > via dax_map_atomic(), so we should be protected against races vs block device > removal. I think the only question is whether it is okay to flush an address > that we know to be valid from the block device's point of view, but which the > filesystem may have truncated from being allocated to our inode. > > Does that all make sense? Yes, I was confusing which revalidation we were talking about. As long as the dax_map_atomic() is there I don't think we need any further revalidation. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v6 4/7] dax: add support for fsync/msync, Ross Zwisler |
|---|---|
| Next by Date: | Re: [PATCH 6/9] libxfs: directory node splitting does not have an extra block, Brian Foster |
| Previous by Thread: | Re: [PATCH v6 4/7] dax: add support for fsync/msync, Ross Zwisler |
| Next by Thread: | Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |