diff options
author | mohans <mohans@FreeBSD.org> | 2006-05-24 23:06:50 +0000 |
---|---|---|
committer | mohans <mohans@FreeBSD.org> | 2006-05-24 23:06:50 +0000 |
commit | 365e894b0f63e67763498fc8f9ebd33fa3cfa8bf (patch) | |
tree | 5a8ae5cf6c25251ebeb224a4c1e21ee7583aeec9 /sys/nfsclient/nfs.h | |
parent | ebcbe046b9de0cd9b1ee9874be24aef9ed6699c6 (diff) | |
download | FreeBSD-src-365e894b0f63e67763498fc8f9ebd33fa3cfa8bf.zip FreeBSD-src-365e894b0f63e67763498fc8f9ebd33fa3cfa8bf.tar.gz |
Since NFSv4 is not SMP safe, nfsiod needs to acquire Giant for NFSv4 mounts
before doing the read/write.
Reported by: Chuck Lever.
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r-- | sys/nfsclient/nfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index a87966d..c0a649f 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -86,6 +86,7 @@ #define NFS_CMPFH(n, f, s) \ ((n)->n_fhsize == (s) && !bcmp((caddr_t)(n)->n_fhp, (caddr_t)(f), (s))) #define NFS_ISV3(v) (VFSTONFS((v)->v_mount)->nm_flag & NFSMNT_NFSV3) +#define NFS_ISV4(v) (VFSTONFS((v)->v_mount)->nm_flag & NFSMNT_NFSV4) #define NFSSTA_HASWRITEVERF 0x00040000 /* Has write verifier for V3 */ #define NFSSTA_GOTFSINFO 0x00100000 /* Got the V3 fsinfo */ |