[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: extended attributes (need help)
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
> *** VOP_UNLOCK added here ***
> *** vn_lock added here ***
> I wonder if there is room for a race condition.
Reading the code again, it seems safe do to that: I am not even sure we
need a lock on the vnode we set an extended attribute on, as it is left
untouched. We just lookup its credentials and struct mount.
This situation is specific to UFS1 and its file-backed extended
attribute, though. In the general case, a lock may be required. But
ufs_extattr_autocreate_attr is UFS1 specific anyway.
Main Index |
Thread Index |