Whamcloud - gitweb
LU-645 Avoid unnecessary dentry rehashing
authorBobi Jam <bobijam@whamcloud.com>
Wed, 28 Sep 2011 10:24:12 +0000 (18:24 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Wed, 16 Nov 2011 13:04:40 +0000 (08:04 -0500)
commitfa111106572c8206fb8b6477617bea4fc483a37d
tree338a1329edf9b69dca1abd731b7dede1cdff4c38
parent28e0b9ed70259757de8684df7a7f8f8ab0397387
LU-645 Avoid unnecessary dentry rehashing

In patchless case the sequence __d_drop() then d_rehash_cond() creates
race window if dentry is already hashed, in this case rehashing should
be avoided.

Change-Id: Ib891e7d2e5ae7efe19ef2ac0abb111e9f9681b7b
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1435
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/llite/dcache.c
lustre/llite/namei.c
lustre/llite/statahead.c