NetBSD/sys/netsmb
thorpej 80cc38a1af Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.
2001-06-14 20:32:41 +00:00
..
iconv.c
iconv.h
Makefile get rid of md4.h 2000-12-08 06:22:53 +00:00
netbios.h
smb_conn.c
smb_conn.h
smb_crypt.c
smb_dev.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
smb_dev.h
smb_lib.h
smb_lock.c
smb_lock.h
smb_rap.h
smb_rq.c
smb_rq.h
smb_smb.c
smb_subr.c
smb_subr.h
smb_tran.h
smb_trantcp.c
smb_trantcp.h
smb_usr.c
smb.h