freebsd-skq/sys/fs/nfsclient
jhb c7ac62aecd Fix some locking nits with the p_state field of struct proc:
- Hold the proc lock while changing the state from PRS_NEW to PRS_NORMAL
  in fork to honor the locking requirements.  While here, expand the scope
  of the PROC_LOCK() on the new process (p2) to avoid some LORs.  Previously
  the code was locking the new child process (p2) after it had locked the
  parent process (p1).  However, when locking two processes, the safe order
  is to lock the child first, then the parent.
- Fix various places that were checking p_state against PRS_NEW without
  having the process locked to use PROC_LOCK().  Every place was already
  locking the process, just after the PRS_NEW check.
- Remove or reduce the use of PROC_SLOCK() for places that were checking
  p_state against PRS_NEW.  The PROC_LOCK() alone is sufficient for reading
  the current state.
- Reorder fill_kinfo_proc() slightly so it only acquires PROC_SLOCK() once.

MFC after:	1 week
2011-03-24 18:40:11 +00:00
..
nfs_clbio.c Change the code in ncl_bioread() in the experimental NFS 2010-09-05 00:47:44 +00:00
nfs_clcomsubs.c In NFS clients, instead of inconsistently using #ifdef 2010-06-13 05:24:27 +00:00
nfs_clkrpc.c Add the SVC_RELEASE(xprt), as required by r194407. 2009-06-17 22:55:59 +00:00
nfs_clnfsiod.c Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
nfs_clnode.c Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
nfs_clport.c Fix some locking nits with the p_state field of struct proc: 2011-03-24 18:40:11 +00:00
nfs_clrpcops.c Store the full timestamp when caching timestamps of files and 2010-09-07 14:29:45 +00:00
nfs_clstate.c Add a flag to the experimental NFSv4 client to indicate when 2010-10-26 23:18:37 +00:00
nfs_clsubs.c Modify the return value for nfscl_mustflush() from boolean_t, 2010-08-03 01:49:28 +00:00
nfs_clvfsops.c Add some FEATURE macros for various features (AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/ 2011-02-25 10:11:01 +00:00
nfs_clvnops.c Modify nfs_open() in the experimental NFS client to be compatible 2010-10-29 13:46:21 +00:00
nfs.h When the experimental NFS client is handling an NFSv4 server reboot 2010-04-22 23:51:01 +00:00
nfsargs.h
nfsdiskless.h
nfsmount.h Fix the nlm so that it no longer depends on the regular 2011-01-03 20:37:31 +00:00
nfsnode.h Store the full timestamp when caching timestamps of files and 2010-09-07 14:29:45 +00:00
nlminfo.h