[OpenAFS] .__afsXXX files don't get removed, makes directories unremovable

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Sun, 08 Oct 2006 11:28:09 -0400

In message <Pine.GSO.4.61-042.0610072253370.3015@johnstown.andrew.cmu.edu>,Derrick J Brashear writes:
>also, you left out critical things like the client platform

the bug with this on linux platforms seems to be holding a write lock
on the vnode when calling afs_InactiveVCache().  afs_remunlink() expects
to take a write lock on the vnode in question.  if it fails, it gives up.

you should probably hold the vnode write lock since afs_InactiveVCache()
does change some of the vnode's members.  so, should afs_remunlink()
be taking the write lock?  the quick fix is to not hold the lock
across afs_InactiveVCache().  is this suitable for long term?