From: Dmitry Monakhov <dmonakhov@openvz.org>
To: Dave Chinner <david@fromorbit.com>
Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org
Subject: Re: [PATCH] add aio/dio regression test race between write and fcntl V2
Date: Tue, 14 Oct 2014 18:06:26 +0400 [thread overview]
Message-ID: <87iojmpwyl.fsf@openvz.org> (raw)
In-Reply-To: <20141014051151.GK5267@dastard>
[-- Attachment #1: Type: text/plain, Size: 2960 bytes --]
Dave Chinner <david@fromorbit.com> writes:
> On Thu, Oct 09, 2014 at 06:57:22PM +0400, Dmitry Monakhov wrote:
>> Original report: https://lkml.org/lkml/2014/10/8/545
>> perform AIO-DIO and fcntl(F_SETFL) concurently
>> Unaligned AIO likely result in synchronization which makes racewindow wider.
>>
>> changes from v1->v2
>> - Properly reuse aio context
>
> Couple of things below....
>
>>
>> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
>> ---
>> src/aio-dio-regress/aio-dio-fcntl-race.c | 148 ++++++++++++++++++++++++++++++
>> tests/generic/326 | 51 ++++++++++
>> tests/generic/326.out | 2 +
>> tests/generic/group | 1 +
>> 4 files changed, 202 insertions(+), 0 deletions(-)
>> create mode 100644 src/aio-dio-regress/aio-dio-fcntl-race.c
>> create mode 100755 tests/generic/326
>> create mode 100644 tests/generic/326.out
>>
>> diff --git a/src/aio-dio-regress/aio-dio-fcntl-race.c b/src/aio-dio-regress/aio-dio-fcntl-race.c
>> new file mode 100644
>> index 0000000..835dbdf
>> --- /dev/null
>> +++ b/src/aio-dio-regress/aio-dio-fcntl-race.c
>> @@ -0,0 +1,148 @@
>> +/*
>> + * Perform aio writes to file and toggle O_DIRECT flag concurrently
>> + * this may trigger race between file->f_flags read and modification
>> + * unuligned aio allow to makes race window wider.
>> + * Regression test for https://lkml.org/lkml/2014/10/8/545
>> + *
>> + * Copyright (C) 2010 Red Hat, Inc. All Rights reserved.
>
> YOu must have copied the code from somewhere. Can you add a note to
> say where it came from in the patch description? And if you added
> any significant modifications, you should add your own copyright to
> it as well...
>
>> diff --git a/tests/generic/326 b/tests/generic/326
>> new file mode 100755
>> index 0000000..8975a91
>> --- /dev/null
>> +++ b/tests/generic/326
>> @@ -0,0 +1,51 @@
>> +#! /bin/bash
>> +# FS QA Test No. 326
>
> Can you rename this to the first unused generic test?
Ok. I thought that I should use latest_used+1.
And copy-paste other aio-dio test.
I've fixed './new' script according to your comments and regenerated the test
Please find updated version in your mbox
Message-Id: <1413295189-28530-1-git-send-email-dmonakhov@openvz.org>
Message-Id: <1413295189-28530-2-git-send-email-dmonakhov@openvz.org>
>
>> +# Run aio-dio-fcntl-race - test aio write race with O_DIRECT toggle
>> +#
>> +#-----------------------------------------------------------------------
>> +# Copyright (c) 2009 Dmitry Monakhov. All Rights Reserved.
>
> 2009 doesn't seem right for a test that was just written...
>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@fromorbit.com
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: Type: application/pgp-signature, Size: 818 bytes --]
prev parent reply other threads:[~2014-10-14 14:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 14:57 [PATCH] add aio/dio regression test race between write and fcntl V2 Dmitry Monakhov
2014-10-09 15:35 ` Wang Shilong
2014-10-09 15:35 ` Wang Shilong
2014-10-14 5:11 ` Dave Chinner
2014-10-14 14:06 ` Dmitry Monakhov [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=87iojmpwyl.fsf@openvz.org \
--to=dmonakhov@openvz.org \
--cc=david@fromorbit.com \
--cc=fstests@vger.kernel.org \
--cc=linux-ext4@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.