NFS - Use mutex API, begin refactoring the state machine.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Jul 2009 02:41:34 +0000 (19:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Jul 2009 02:41:34 +0000 (19:41 -0700)
commit8684e6f9ef55e0d000f3b02a5a1e822364ee9450
tree9748b46281c2f935644cd64e9ac592f78c883643
parent685ebdab61459f9a21b78b3260fa119879e5c0fc
NFS - Use mutex API, begin refactoring the state machine.

* Use the mtx_*() API instead of roll-your-own locks for the send and
  receive locks.

* Refactor nfs_request().  Break the procedure up into multiple pieces
  for upcoming nfsiod/nfsd work (as in: getting rid of them).

  The main thing here is to split off the 'setup', 'send', 'receive',
  and 'process reply' parts.  This will make it easier to construct
  a kernel thread to i.e. just do the 'setup/send' part, and another
  to do the 'receive/reply' part.
sys/vfs/nfs/nfs.h
sys/vfs/nfs/nfs_socket.c
sys/vfs/nfs/nfs_syscalls.c
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/nfs/nfsmount.h