diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-07-22 14:37:53 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-07-22 14:37:53 +0000 |
commit | d00a1eab14e44b3e8b2d398cc1519dba8aa5ee68 (patch) | |
tree | dacfdbfef58f66fcadc2d2fc68ace7ef9e61938e /sys/fs/nfs/nfsport.h | |
parent | f8feb430b0a4639f63593e2ba2bb08a7aeae8ff8 (diff) | |
download | FreeBSD-src-d00a1eab14e44b3e8b2d398cc1519dba8aa5ee68.zip FreeBSD-src-d00a1eab14e44b3e8b2d398cc1519dba8aa5ee68.tar.gz |
Add changes to the experimental nfs client to use the PBDRY flag for
msleep(9) when a vnode lock or similar may be held. The changes are
just a clone of the changes applied to the regular nfs client by
r195703.
Approved by: re (kensmith), kib (mentor)
Diffstat (limited to 'sys/fs/nfs/nfsport.h')
-rw-r--r-- | sys/fs/nfs/nfsport.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfsport.h b/sys/fs/nfs/nfsport.h index 1f4872b..f05c84e 100644 --- a/sys/fs/nfs/nfsport.h +++ b/sys/fs/nfs/nfsport.h @@ -911,6 +911,13 @@ struct nfsreq { #define NFSVNO_DELEGOK(v) (1) #endif +/* + * Define this as the flags argument for msleep() when catching signals + * while holding a resource that other threads would block for, such as + * a vnode lock. + */ +#define NFS_PCATCH (PCATCH | PBDRY) + #endif /* _KERNEL */ #endif /* _NFSPORT_NFS_H */ |