[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFw8aHnDgj1WBhPGMpi9ZHaNpa2roDW5wuxF1Xab49QTew@mail.gmail.com>
Date: Mon, 9 Sep 2013 18:34:16 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Ramkumar Ramachandra <artagnon@...il.com>
Cc: Al Viro <viro@...iv.linux.org.uk>,
George Spelvin <linux@...izon.com>,
"Chandramouleeswaran, Aswin" <aswin@...com>,
John Stoffel <john@...ffel.org>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
"Norton, Scott J" <scott.norton@...com>,
Waiman Long <Waiman.Long@...com>
Subject: Re: [PATCH v4 1/1] dcache: Translating dentry into pathname without
taking rename_lock
On Mon, Sep 9, 2013 at 6:15 PM, Ramkumar Ramachandra <artagnon@...il.com> wrote:
>
> Maybe it should then?
It doesn't need to. The RCU lookup looks at individual dentry sequence
numbers and doesn't care about the bigger rename sequence number at
all.
The fallback (if you hit one of the very very rare races, or if you
hit a symlink) ends up doing per-path-component lookups under the
rename sequence lock, but for it, read-locking it until it succeeds is
the right thing to do.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists