Messages in this thread | | | Date | Mon, 9 Sep 2013 18:34:16 -0700 | Subject | Re: [PATCH v4 1/1] dcache: Translating dentry into pathname without taking rename_lock | From | Linus Torvalds <> |
| |
On Mon, Sep 9, 2013 at 6:15 PM, Ramkumar Ramachandra <artagnon@gmail.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
| |