cvs commit: src/sys/kern vfs_lookup.c
Kris Kennaway
kris at FreeBSD.org
Sun Apr 30 03:57:46 UTC 2006
kris 2006-04-30 03:57:46 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/kern vfs_lookup.c
Log:
MFC r1.90, r1.91:
> - Lock giant when assigning ni_vp and keep vfslocked state valid.
> - Consistently track ni_dvp and ni_vp with dvfslocked and vfslocked rather
> than trying to optimize it into a single lock. This adds more calls to
> lock giant with non smpsafe filesystems but is the only way to reliably
> hold the correct lock.
> - Remove an invalid assert in the mountedhere case in lookup and fix the
> code to properly deal with the scenario. We can actually have a lookup
> that returns dp == dvp with mountedhere set with certain unmount races.
Approved by: re (scottl)
Revision Changes Path
1.80.2.7 +16 -13 src/sys/kern/vfs_lookup.c
More information about the cvs-src
mailing list