freebsd-dev/sys/netsmb
Tai-hwa Liang c6b54e61cc It turns out that devfs_close() does a dev_refthread() before invoking
device specific d_close(), which makes subsequent destroy_dev() being
blocked in the "devdrn" loop.

This bandaid should fix the smbfs hang/crashing observed on -CURRENT since
the introduction of sys/kern/kern_conf.c:1.199:

 	# mount_smbfs -I server //server/share /mnt
 	Password:
 	[hang]

Reviewed by:	bp
See also:	http://lists.freebsd.org/pipermail/cvs-src/2006-November/071379.html
2007-02-09 02:54:13 +00:00
..
netbios.h Allow user to override default port numbers used by communication 2005-10-02 08:32:49 +00:00
smb_conn.c Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
smb_conn.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
smb_crypt.c Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
smb_dev.c It turns out that devfs_close() does a dev_refthread() before invoking 2007-02-09 02:54:13 +00:00
smb_dev.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
smb_iod.c Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
smb_rq.c Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
smb_rq.h Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
smb_smb.c Retire NETSMBCRYPTO as a kernel option and make its functionality 2006-03-05 22:52:17 +00:00
smb_subr.c It seems to be safe to ignore 'file not locked' error 2006-11-05 06:31:08 +00:00
smb_subr.h Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
smb_tran.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
smb_trantcp.c - Fix ncp_poll() to not panic if the socket doesn't have any pending data. 2006-08-03 15:31:52 +00:00
smb_trantcp.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
smb_usr.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
smb.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00