From: "Joshua Hudson" <joshudson@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: RFC replace some locking of i_sem wiht atomic_t
Date: Sun, 2 Apr 2006 15:09:46 -0700 [thread overview]
Message-ID: <bda6d13a0604021509l4bbc6edar672d99f9b6537347@mail.gmail.com> (raw)
In-Reply-To: <bda6d13a0604021508g3cc03506yce0170166dc0eda2@mail.gmail.com>
On 4/2/06, Al Viro <viro@ftp.linux.org.uk> wrote:
> On Sun, Apr 02, 2006 at 11:01:30AM -0700, Joshua Hudson wrote:
> > Herein lies the problem with the current locking scheme:
> > 1. rename locks target if it exists, but target may be created by
> > link() immediately
> > after the check&lock procedure.
> > 2. The target of link() is completely unprotected.
>
> 3. You have failed to RTFS or RTFM.
>
Ah here we are
directory-locking.txt shows link() does:
lock parent
insure that source is not a directory
lock source
Let me guess, parent means parent of target, not parent of source.
This has been confusing me for months. Thanks for streightning me out.
prev parent reply other threads:[~2006-04-02 22:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-01 0:08 Joshua Hudson
2006-04-02 18:01 ` Joshua Hudson
2006-04-02 18:43 ` Al Viro
[not found] ` <bda6d13a0604021508g3cc03506yce0170166dc0eda2@mail.gmail.com>
2006-04-02 22:09 ` Joshua Hudson [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=bda6d13a0604021509l4bbc6edar672d99f9b6537347@mail.gmail.com \
--to=joshudson@gmail.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®