linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Xiong Zhou <xzhou@redhat.com>
Cc: linux-nvdimm@ml01.01.org, linux-fsdevel@vger.kernel.org
Subject: Re: [LTP issues] MAP_LOCKED MS_INVALIDATE, dio rw odd count on DAX
Date: Fri, 3 Mar 2017 09:54:20 +0100	[thread overview]
Message-ID: <20170303085420.GA4373@quack2.suse.cz> (raw)
In-Reply-To: <20170124052405.o7oz6xr3bwwmjxvo@XZHOUW.usersys.redhat.com>

Hi,

going through some old email and found yours...

On Tue 24-01-17 13:24:05, Xiong Zhou wrote:
> LTP tests on DAX show 2 issues.
> 
> msync03 and diotest4, both xfs and ext4,
> 
> non-DAX  pass
> DAX      fail
> 
> 1, MAP_LOCKED && msync with MS_INVALIDATE, which should fail.
> 
> Flag checking code in msync looks ok but missing _LOCK vma falgs
> for DAX mapped vma ? i guess DAX now does not support that ?
> Tracking by LTP testcase "msync03"

So MAP_LOCKED doesn't have a good meaning in case of DAX as there's no page
to lock in memory. Whether we define this means automatic success, failure,
or something else is a question. I don't think anybody has put much thought
into this yet and so results are sometimes rather arbitrary... Thanks for
bringing this up, I'll think about it.

> 2. O_DIRECT rw odd counts on DAX
> 
> read/write 1 byte on file opened with O_DIRECT, EINVAL is
> expected but Success.
> I'm not sure whether this is an issue, please enlighten :)
> Tracking by LTP testcase "dio04 diotest4".

This is expected. Byte addressable memory can handle byte-aligned IOs...

								Honza

-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

      reply	other threads:[~2017-03-03  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24  5:24 [LTP issues] MAP_LOCKED MS_INVALIDATE, dio rw odd count on DAX Xiong Zhou
2017-03-03  8:54 ` Jan Kara [this message]

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=20170303085420.GA4373@quack2.suse.cz \
    --to=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nvdimm@ml01.01.org \
    --cc=xzhou@redhat.com \
    /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;
as well as URLs for NNTP newsgroup(s).