From: Eric Sandeen <sandeen@redhat.com>
To: Surbhi Palande <surbhi.palande@canonical.com>
Cc: m.mizuma@jp.fujitsu.com, jack@suse.cz, marco.stornelli@gmail.com,
xfs-oss <xfs@oss.sgi.com>,
toshi.okajima@jp.fujitsu.com, adilger.kernel@dilger.ca,
linux-fsdevel@vger.kernel.org, tytso@mit.edu,
linux-ext4@vger.kernel.org
Subject: Re: [PATCH] Attempt to sync the fsstress writes to a frozen F.S
Date: Thu, 12 May 2011 09:22:54 -0500 [thread overview]
Message-ID: <4DCBED3E.4020302@redhat.com> (raw)
In-Reply-To: <1305097841-2308-1-git-send-email-surbhi.palande@canonical.com>
On 5/11/11 2:10 AM, Surbhi Palande wrote:
> While the fsstress background writes are busy dirtying the page cache, if a
> fsfreeze happens then the background writes should stall. A sync should then
> not have any data to sync to the FS. If it does have any data to sync then
> sync will cause a deadlock by holding the s_umount write semaphore and waiting
> in the wait queue for the FS to thaw, whereas the F.S can never thaw without
> getting the s_umount write semaphore.
>
> Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
Seems ok to me. In the future, when sending xfstests patches,
if you can add "xfstests" to the subject, and cc: the xfs list,
it'd be great.
I presume that this test does fail for you without your fixes?
I'll see if anyone on the xfs list has comments and if not, I can check this in.
Thanks,
-Eric
> ---
> 068 | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/068 b/068
> index 82c1a4e..b9ac58d 100755
> --- a/068
> +++ b/068
> @@ -101,6 +101,11 @@ do
> tee -a $seq.full
> sleep 2
>
> + # there should be nothing to sync at this point. This may hang in case
> + # of fsstress background writes dirtying the page cache while the F.S is frozen
> + sync &
> + sleep 2
> +
> echo "*** thawing \$SCRATCH_MNT" | tee -a $seq.full
> xfs_freeze -u "$SCRATCH_MNT" | tee -a $seq.full
> [ $? != 0 ] && echo xfs_freeze -u "$SCRATCH_MNT" failed | \
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
parent reply other threads:[~2011-05-12 14:23 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1305097841-2308-1-git-send-email-surbhi.palande@canonical.com>]
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=4DCBED3E.4020302@redhat.com \
--to=sandeen@redhat.com \
--cc=adilger.kernel@dilger.ca \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=m.mizuma@jp.fujitsu.com \
--cc=marco.stornelli@gmail.com \
--cc=surbhi.palande@canonical.com \
--cc=toshi.okajima@jp.fujitsu.com \
--cc=tytso@mit.edu \
--cc=xfs@oss.sgi.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