NetBSD/sys
jdolecek 88db5b512b Don't try to reacquire root vnode if vflush() in smbfs_unmount() fails.
This is potentially fragile, since the vnode may have been reclaimed
in vflush(), and used by different filesystem. This wouldn't actually
happen due to n_parent link to parent directory, but better safe
than sorry.

Since sm_root is only and strictly cache to speed up VFS_ROOT(),
it can be acquired/dropped any time. Rearrange code to not
require sm_root set, and change smbfs_root() back to set
sm_root if it's not set yet. smbfs_unmount() now only vrele()s
the root vnode if sm_root is set, and doesn't try reacquire it
if vflush() fails.

problem with vref() after vflush() pointed out by Bill Studenmund
2003-02-26 20:21:40 +00:00
..
altq fix typo, from David Laight. 2003-01-06 15:20:24 +00:00
arch Move all `ID prom' stuff into the prom library. 2003-02-26 17:39:05 +00:00
coda protect <sys/mallocvar.h> ifdef _KERNEL 2003-02-02 02:34:53 +00:00
compat Remember the allocated ptimer object so that it won't leak. 2003-02-23 23:36:35 +00:00
conf Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
crypto sprinkle some #ifdef __LINT__ until C9X named union member 2003-02-09 16:25:27 +00:00
ddb Add a synonym for trace - 'bt' and document it 2003-02-13 23:50:33 +00:00
dev Remove unexpectedly imported ACPI CA files and obsolete files 2003-02-26 17:06:40 +00:00
fs Don't try to reacquire root vnode if vflush() in smbfs_unmount() fails. 2003-02-26 20:21:40 +00:00
gdbscripts
ipkdb
kern Remove leftover MBUFTRACE asserts. 2003-02-26 18:22:10 +00:00
lib Switch back to generic bzero/memset until new one is shown to work. 2003-02-25 20:15:02 +00:00
lkm Add helper awk scripts for generating trampolines for PowerPC LKMs. 2003-02-19 19:04:27 +00:00
miscfs This addresses PR kerm/19989. Thanks to hamajima@nagoya.ydc.co.jp for submitting this patch which enables /proc/uptime for linux emul. Patch reviewed by atatat@netbsd.org and tron@netbsd.org, approved by tron@netbsd.org. 2003-02-25 21:00:31 +00:00
net Fix tpyo. 2003-02-26 07:47:42 +00:00
netatalk Update for MBUFTRACE. 2003-02-26 07:53:04 +00:00
netccitt "Utilize" has exactly the same meaning as "use," but it is more 2003-02-05 00:02:24 +00:00
netinet Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
netinet6 Make sure to initialize callout structs. 2003-02-25 22:17:47 +00:00
netisdn Restore the system priority level in case of errors. 2002-12-28 21:09:14 +00:00
netiso Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
netkey Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
netnatm Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
netns Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
netsmb improve tsleep() wmesgs 2003-02-26 19:31:33 +00:00
nfs Fix typo. 2003-02-26 07:33:57 +00:00
stand
sys deactivate MBUFTRACE related KASSERT()s in the !MBUFTRACE case 2003-02-26 14:36:43 +00:00
ufs Make fs-specific fcntl macros take three arguments (approved wrstuden). 2003-02-25 23:12:06 +00:00
uvm Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and 2003-02-25 20:35:31 +00:00
Makefile move msdosfs code from sys/msdosfs to sys/fs/msdosfs 2002-12-26 12:31:23 +00:00