From: Dave Chinner <david@fromorbit.com>
To: Benjamin LaHaise <bcrl@kvack.org>
Cc: Zach Brown <zab@zabbo.net>, Jeff Moyer <jmoyer@redhat.com>,
fstests@vger.kernel.org
Subject: Re: [patch, v3] add an aio test which closes the fd before destroying the ioctx
Date: Tue, 26 Aug 2014 09:12:15 +1000 [thread overview]
Message-ID: <20140825231215.GA26465@dastard> (raw)
In-Reply-To: <20140825165043.GF20070@kvack.org>
On Mon, Aug 25, 2014 at 12:50:43PM -0400, Benjamin LaHaise wrote:
> On Thu, Aug 21, 2014 at 09:57:50AM -0700, Zach Brown wrote:
> > On Wed, Aug 20, 2014 at 07:43:19PM -0400, Jeff Moyer wrote:
> > > Hi, Dave,
> > >
> > > Dave Chinner <david@fromorbit.com> writes:
> > >
> > > > IOWs, we now have two AIO+DIO tests showing the same symptoms that
> > > > no other tests show. This tends to point at AIO not being fully
> > > > cleaned up and completely freed by the time the processes
> > > > dispatching it have exit()d. This failure generally occurs when
> > > > there is other load on the system/disks backing the test VM (e.g.
> > > > running xfstests in multiple VMs at the same time) so I suspect it
> > > > has to do with IO completion taking a long time.
> > >
> > > Process exit waits for all outstanding I/O, but maybe it's an rcu thing.
> >
> > I thought it did too but it doesn't look like upstream exit_aio() is
> > waiting for iocbs to complete.
> >
> > Ben, are you digging in to this? Want me to throw something together?
>
> Something like the following should fix it. This is only lightly tested.
> Does someone already have a simple test case we can add to the libaio test
> suite to verify this behaviour? I'm assuming that waiting for one ioctx
> at a time is sufficient and we don't need to parallelise cancellation at
> exit.
both xfstests::generic/208 and xfstests::generic/323 reproduce this.
I'm seeing a long term failure rate (i.e. over the past year) of
around 15% for generic/208 on my test VMs....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2014-08-25 23:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 19:34 [patch, v3] add an aio test which closes the fd before destroying the ioctx Jeff Moyer
2014-06-26 12:55 ` Brian Foster
2014-08-20 22:57 ` Dave Chinner
2014-08-20 23:43 ` Jeff Moyer
2014-08-21 9:16 ` Dave Chinner
2014-08-21 16:57 ` Zach Brown
2014-08-25 16:50 ` Benjamin LaHaise
2014-08-25 17:55 ` Jeff Moyer
2014-08-25 23:12 ` Dave Chinner [this message]
2014-08-26 16:05 ` Jeff Moyer
2014-08-26 17:27 ` Zach Brown
2014-08-26 17:32 ` Jeff Moyer
2014-08-27 8:49 ` Dave Chinner
2014-08-27 10:08 ` Dave Chinner
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=20140825231215.GA26465@dastard \
--to=david@fromorbit.com \
--cc=bcrl@kvack.org \
--cc=fstests@vger.kernel.org \
--cc=jmoyer@redhat.com \
--cc=zab@zabbo.net \
/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