diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-03-24 23:16:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-03-24 23:16:48 +0000 |
commit | 8f6024ae234d5365fe6142a4d7ad85570839342b (patch) | |
tree | ea04b6367ad730ed0878d25268836432449fbb75 /sys/nfsclient/nfs_kdtrace.h | |
parent | 71ae7c9315fc12283d86f2791327d9cc7f74c97c (diff) | |
download | FreeBSD-src-8f6024ae234d5365fe6142a4d7ad85570839342b.zip FreeBSD-src-8f6024ae234d5365fe6142a4d7ad85570839342b.tar.gz |
Fix two bugs in DTrace tracing of accesscache and attrcache load events:
- Trace non-error loads into the access cache once, not zero times or
twice.
- Sometimes attr cache loads fail due to a race, in which case they are
aborted leading to an invalidation; in this case, trace only the flush,
not a load.
MFC after: 1 month
Sponsored by: Google, Inc.
Diffstat (limited to 'sys/nfsclient/nfs_kdtrace.h')
-rw-r--r-- | sys/nfsclient/nfs_kdtrace.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_kdtrace.h b/sys/nfsclient/nfs_kdtrace.h index 4bd4557..d29aa68 100644 --- a/sys/nfsclient/nfs_kdtrace.h +++ b/sys/nfsclient/nfs_kdtrace.h @@ -64,8 +64,7 @@ extern uint32_t nfsclient_accesscache_load_done_id; } while (0) #define KDTRACE_NFS_ACCESSCACHE_LOAD_DONE(vp, uid, rmode, error) do { \ - if (error && dtrace_nfsclient_accesscache_load_done_probe != \ - NULL) \ + if (dtrace_nfsclient_accesscache_load_done_probe != NULL) \ (dtrace_nfsclient_accesscache_load_done_probe)( \ nfsclient_accesscache_load_done_id, (vp), (uid), \ (rmode), (error)); \ |