mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
linux-dont-lock-around-inactivevcache-20061010
FIXES 42312 iafs_InactiveVCache() calls afs_InvalidateAllSegments() which says it should be called with the vnode locked. so the lock should probably be moved to afs_InactiveVCache() so it can be droppped before calling afs_remunlink().
This commit is contained in:
parent
8fa4ca5b80
commit
ac52e2f3c0
@ -839,9 +839,7 @@ afs_dentry_iput(struct dentry *dp, struct inode *ip)
|
||||
struct vcache *vcp = VTOAFS(ip);
|
||||
|
||||
AFS_GLOCK();
|
||||
ObtainWriteLock(&vcp->lock, 537);
|
||||
(void) afs_InactiveVCache(vcp, NULL);
|
||||
ReleaseWriteLock(&vcp->lock);
|
||||
AFS_GUNLOCK();
|
||||
|
||||
iput(ip);
|
||||
|
Loading…
Reference in New Issue
Block a user