Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH 3/3] VFS: close race between getcwd() and d_move()

$
0
0
Linus Torvalds writes: (Summary) The problem is that __d_move() really wants to move the hashes things atomically, but instead of doing that it does a "unhash and then rehash".
rehash".
How nasty would it be to just expand the calls to __d_drop/__d_rehash into __d_move itself, and take both has list locks at the same time (with the usual ordering and checking if it's the same list, of course).
course).
Linus
Linus
Linus

Viewing all articles
Browse latest Browse all 1267

Trending Articles