summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs.h
diff options
context:
space:
mode:
authormohans <mohans@FreeBSD.org>2006-05-24 23:06:50 +0000
committermohans <mohans@FreeBSD.org>2006-05-24 23:06:50 +0000
commit365e894b0f63e67763498fc8f9ebd33fa3cfa8bf (patch)
tree5a8ae5cf6c25251ebeb224a4c1e21ee7583aeec9 /sys/nfsclient/nfs.h
parentebcbe046b9de0cd9b1ee9874be24aef9ed6699c6 (diff)
downloadFreeBSD-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.h1
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 */
OpenPOWER on IntegriCloud