Re: question about vnode and inode locking

1999-05-31 Thread Ville-Pertti Keinonen
zzh...@cs.binghamton.edu (Zhihui Zhang) writes: > It seems to me that we can lock at the vnode layer AND at the inode layer. No, the inode lock is, in most cases, the vnode layer lock. It isn't obvious because the code assumes that any filesystem using vop_stdlock has a 'struct lock' as the fi

question about vnode and inode locking

1999-05-30 Thread Zhihui Zhang
It seems to me that we can lock at the vnode layer AND at the inode layer. Since an inode is always associated with a vnode, and is accessed via its vnode, I do not see the reason why we should lock the inode after having locked the vnode. Can anyone help me with this? Thanks a lot. -Zhihui