Messages in this thread | | | From | Ramkumar Ramachandra <> | Date | Tue, 10 Sep 2013 08:42:57 +0530 | Subject | Re: [PATCH v4 1/1] dcache: Translating dentry into pathname without taking rename_lock |
| |
Linus Torvalds wrote: > 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.
Right; it's sequential.
> 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.
No, it's write-locking.
| |