summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2011-04-13 12:46:25 +0000
committerru <ru@FreeBSD.org>2011-04-13 12:46:25 +0000
commitefc4212fd5af47bdf88f42431207b130b84c6466 (patch)
treece5b29ef369bf075d945ebe465f692aba4218b68 /sys/nfsclient
parenta07e3dbd25f24ae24f13ea15c2847aee1767c931 (diff)
downloadFreeBSD-src-efc4212fd5af47bdf88f42431207b130b84c6466.zip
FreeBSD-src-efc4212fd5af47bdf88f42431207b130b84c6466.tar.gz
- Fixed nfs_printf() to use vprintf().
- Fixed vfs.nfs.acdebug sysctl's description. - Fixed panic when compiled with NFS_ACDEBUG. MFC after: 3 days
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_subs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index 7c9941f..e1ecd19 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -442,7 +442,7 @@ nfs_printf(const char *fmt, ...)
mtx_lock(&Giant);
va_start(ap, fmt);
- printf(fmt, ap);
+ vprintf(fmt, ap);
va_end(ap);
mtx_unlock(&Giant);
}
@@ -656,7 +656,7 @@ out:
SYSCTL_DECL(_vfs_nfs);
static int nfs_acdebug;
SYSCTL_INT(_vfs_nfs, OID_AUTO, acdebug, CTLFLAG_RW, &nfs_acdebug, 0,
- "Toggle acdebug (access cache debug) flag");
+ "Toggle acdebug (attribute cache debug) flag");
#endif
/*
@@ -713,6 +713,9 @@ nfs_getattrcache(struct vnode *vp, struct vattr *vaper)
if ((time_second - np->n_attrstamp) >= timeo) {
nfsstats.attrcache_misses++;
mtx_unlock(&np->n_mtx);
+#ifdef NFS_ACDEBUG
+ mtx_unlock(&Giant); /* nfs_printf() */
+#endif
KDTRACE_NFS_ATTRCACHE_GET_MISS(vp);
return (ENOENT);
}
OpenPOWER on IntegriCloud