Up to [cvs.NetBSD.org] / src / sys / miscfs / procfs
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: hpcarm-cleanup
Revision 1.158 / (download) - annotate - [select for diffs], Sun Jul 22 13:37:13 2007 UTC (16 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2,
yamt-x86pmap-base,
nick-csl-alignment-base5,
matt-mips64-base,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-mips64,
matt-armv6,
jmcneill-pm
Changes since 1.157: +28 -7
lines
Diff to previous 1.157 (colored)
Don't allow getcwd() on procfs vnodes and provide "/" as the path instead of the result from getcwd(). The works around locking panics caused by namei calling VOP_READLINK while holding on to a directory lock and getcwd() trying to acquire that lock. The real fix would be to get rid of getcwd() calls within VOPs (not locking safe), but that's not a viable option in the netbsd-4 timeframe. Suggestion for workaround from David Holland.