LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Dmitriy Monakhov <dmonakhov@sw.ru>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] [RFC] remove ext3 inode from orphan list when link and unlink race
Date: Sun, 14 Jan 2007 09:42:05 -0600 [thread overview]
Message-ID: <45AA4F4D.5030605@redhat.com> (raw)
In-Reply-To: <878xg5q0q7.fsf@sw.ru>
Dmitriy Monakhov wrote:
> Eric Sandeen <sandeen@redhat.com> writes:
>
>> I've been looking at a case where many threads are opening, unlinking, and
>> hardlinking files on ext3 .
> How many concurent threads do you use and how long does it takes to trigger
> this race? I've tried to reproduce this with two threads, but not succeed.
> <thread 1>
> fd = create("src")
> close(fd)
> unlink("src")
> <thread 2>
> link("src", "dst")
> unlink("dst")
>
> Original testcase will be the best answer :).
Sure :) Though I didn't write it... see this collection of bash scripts:
http://people.redhat.com/esandeen/testcases/orphan-repro.tar.bz2
I didn't write it, but it exposed the bug for me. The VAR file contains
variables to specify mountpoint and a device, which the script starts by
mkfs'ing, so be warned.
It spawns -many- threads, and on my 4 CPU opteron I can hit it in a
reasonable amount of time. It would probably be nice to have a more
targeted testcase but it did the trick for me.
Thanks,
-Eric
> Thanks.
prev parent reply other threads:[~2007-01-14 15:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 20:45 Eric Sandeen
2007-01-12 21:02 ` Alex Tomas
2007-01-12 21:14 ` Eric Sandeen
2007-01-12 21:25 ` Alex Tomas
2007-01-12 21:48 ` Eric Sandeen
2007-01-12 21:55 ` Alex Tomas
2007-01-12 22:01 ` Eric Sandeen
2007-01-12 22:07 ` Alex Tomas
2007-01-12 22:35 ` Eric Sandeen
2007-01-12 21:17 ` Alex Tomas
2007-01-12 21:24 ` Dave Kleikamp
2007-01-14 11:58 ` Dmitriy Monakhov
2007-01-14 15:42 ` Eric Sandeen [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=45AA4F4D.5030605@redhat.com \
--to=sandeen@redhat.com \
--cc=dmonakhov@sw.ru \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: [PATCH] [RFC] remove ext3 inode from orphan list when link and unlink race' \
/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
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).