1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/sys/nfsserver
Seigo Tanimura 243917fe3b Lock down a socket, milestone 1.
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
  socket buffer. The mutex in the receive buffer also protects the data
  in struct socket.

o Determine the lock strategy for each members in struct socket.

o Lock down the following members:

  - so_count
  - so_options
  - so_linger
  - so_state

o Remove *_locked() socket APIs.  Make the following socket APIs
  touching the members above now require a locked socket:

 - sodisconnect()
 - soisconnected()
 - soisconnecting()
 - soisdisconnected()
 - soisdisconnecting()
 - sofree()
 - soref()
 - sorele()
 - sorwakeup()
 - sotryfree()
 - sowakeup()
 - sowwakeup()

Reviewed by:	alfred
2002-05-20 05:41:09 +00:00
..
nfs_serv.c More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
nfs_srvcache.c
nfs_srvsock.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
nfs_srvsubs.c Remove references to vm_zone.h and switch over to the new uma API. 2002-03-20 10:07:52 +00:00
nfs_syscalls.c Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
nfs.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
nfsm_subs.h The macro nfsm_reply() is supposed to allocate a reply in all cases, 2002-01-11 22:22:39 +00:00
nfsrvcache.h
nfsrvstats.h