Whamcloud - gitweb
b=20989 Atomically check-update inode lli_smd to prevent updated race
authorOleg Drokin <green@linuxhacker.ru>
Fri, 19 Mar 2010 18:19:17 +0000 (11:19 -0700)
committerRobert Read <rread@sun.com>
Fri, 19 Mar 2010 18:19:17 +0000 (11:19 -0700)
commitd8ac05a4c2cd4ba1af686e99e87225b22e44c299
tree7b66b7ac4a32fb6c87ccf61b46d748e5388d68b9
parent44d1a68d02875f9d9b902f4cf08811c139ac7fed
b=20989 Atomically check-update inode lli_smd to prevent updated race

There was a possible scenario during NFS use where multiple NFS requests would
try to refresh a dentry and will call ll_prep_inode with different
requests. ll_update_inode's ll_smd updating code would then race
after a check for ll_smd being non-NULL and we endup with an lsm leak
and some processes possibly usign stale copy of lsm data.

i=adilger
i=rread
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c