kernel - Fix two NFS crashes
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 18 Jul 2014 03:54:42 +0000 (20:54 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 18 Jul 2014 03:54:42 +0000 (20:54 -0700)
commit966299f632b47957bccab788e2eca8bde4c2c2b6
treee681189ddebd987be602f9b6061c04cec2c327d3
parent44e1bd6ead7d11dcc818c0a8defbf0c58a3e1e0d
kernel - Fix two NFS crashes

* Fix a bug during unmount when sillyrenames are being terminated.
  When doing a forced unmount, the sillyrename vnode(s) may be VBAD.
  Do not attempt to flush the sillyrename in this case.

* Fix a bug for 'soft' mounts.  Soft failures do not properly set the
  error code which can lead to a NULL pointer dereference in the rpc
  processing code.

  Set the error code to EINTR for soft mounts whos retries have been
  exceeded.
sys/vfs/nfs/nfs_socket.c
sys/vfs/nfs/nfs_vnops.c