freebsd-nq/sys/fs
John Baldwin 593efaf9f7 Further refine the handling of stop signals in the NFS client. The
changes in r246417 were incomplete as they did not add explicit calls to
sigdeferstop() around all the places that previously passed SBDRY to
_sleep().  In addition, nfs_getcacheblk() could trigger a write RPC from
getblk() resulting in sigdeferstop() recursing.  Rather than manually
deferring stop signals in specific places, change the VFS_*() and VOP_*()
methods to defer stop signals for filesystems which request this behavior
via a new VFCF_SBDRY flag.  Note that this has to be a VFC flag rather than
a MNTK flag so that it works properly with VFS_MOUNT() when the mount is
not yet fully constructed.  For now, only the NFS clients are set this new
flag in VFS_SET().

A few other related changes:
- Add an assertion to ensure that TDF_SBDRY doesn't leak to userland.
- When a lookup request uses VOP_READLINK() to follow a symlink, mark
  the request as being on behalf of the thread performing the lookup
  (cnp_thread) rather than using a NULL thread pointer.  This causes
  NFS to properly handle signals during this VOP on an interruptible
  mount.

PR:		kern/176179
Reported by:	Russell Cattelan (sigdeferstop() recursion)
Reviewed by:	kib
MFC after:	1 month
2013-02-21 19:02:50 +00:00
..
cd9660
coda
deadfs
devfs Stop translating the ERESTART error from the open(2) into EINTR. 2013-02-07 14:53:33 +00:00
ext2fs ext2fs: Use prototype declarations for function definitions 2013-02-10 19:49:37 +00:00
fdescfs Revert r246791 as it needs a security review first 2013-02-14 15:17:53 +00:00
fifofs
fuse Add support for IO_APPEND flag in fuse 2013-01-08 12:21:50 +00:00
hpfs
msdosfs Do not update the fsinfo block on each update of any fat block, this 2013-02-17 20:35:54 +00:00
nandfs Remove the last use of the deprecated MNT_VNODE_FOREACH interface in 2013-01-03 19:01:56 +00:00
nfs Further refine the handling of stop signals in the NFS client. The 2013-02-21 19:02:50 +00:00
nfsclient Further refine the handling of stop signals in the NFS client. The 2013-02-21 19:02:50 +00:00
nfsserver Further cleanups to use of timestamps in NFS: 2013-01-25 15:25:24 +00:00
ntfs
nullfs Remove the filtering of the acceptable mount options for nullfs, added 2013-01-16 05:32:49 +00:00
nwfs
portalfs
procfs
pseudofs
smbfs
tmpfs Remove a racy checks on resident and cached pages for 2013-02-10 01:04:10 +00:00
udf
unionfs