freebsd-dev/sys/nfs4client
Mohan Srinivasan 7d7d9e2242 Fixes up the handling of shared vnode lock lookups in the NFS client,
adds a FS type specific flag indicating that the FS supports shared
vnode lock lookups, adds some logic in vfs_lookup.c to test this flag
and set lock flags appropriately.

- amd on 6.x is a non-starter (without this change). Using amd under
  heavy load results in a deadlock (with cascading vnode locks all the
  way to the root) very quickly.
- This change should also fix the more general problem of cascading
  vnode deadlocks when an NFS server goes down.

Ideally, we wouldn't need these changes, as enabling shared vnode lock
lookups globally would work. Unfortunately, UFS, for example isn't
ready for shared vnode lock lookups, crashing pretty quickly.

This change is the result of discussions with Stephan Uphoff (ups@).

Reviewed by:	ups@
2006-09-13 18:39:09 +00:00
..
nfs4_dev.c Add better sanity checking to the logic that handles ioctl processing 2006-05-13 00:16:35 +00:00
nfs4_dev.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_idmap.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_idmap.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_socket.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_subs.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_vfs_subs.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_vfs.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_vfsops.c Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfs4_vn_subs.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_vn.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4_vnops.c Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfs4.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4m_subs.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00