summaryrefslogtreecommitdiffstats
path: root/tapset/rpc.stp
diff options
context:
space:
mode:
authormmason <mmason>2007-10-09 18:05:54 +0000
committermmason <mmason>2007-10-09 18:05:54 +0000
commit2849dc38aee8dfb61731d5824e0c6a48197709af (patch)
treef54017fa1e78eb46b96d4c348e40b8e0eb8b7ee7 /tapset/rpc.stp
parent0b82b290bdff52527486d1e69150484e4925baf0 (diff)
downloadsystemtap-steved-2849dc38aee8dfb61731d5824e0c6a48197709af.tar.gz
systemtap-steved-2849dc38aee8dfb61731d5824e0c6a48197709af.tar.xz
systemtap-steved-2849dc38aee8dfb61731d5824e0c6a48197709af.zip
rpc.stp: Replaced atomic_read()'s with kread()'s
Diffstat (limited to 'tapset/rpc.stp')
-rw-r--r--tapset/rpc.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/rpc.stp b/tapset/rpc.stp
index 3d17d221..eecdb796 100644
--- a/tapset/rpc.stp
+++ b/tapset/rpc.stp
@@ -948,7 +948,7 @@ function clones_from_clnt:long(clnt:long)
%{ /* pure */
struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
- THIS->__retvalue = atomic_read(&clnt->cl_count); /* FIXME: deref hazard! */
+ THIS->__retvalue = kread(&(clnt->cl_count));
#else
THIS->__retvalue = -1;
#endif
@@ -958,7 +958,7 @@ function tasks_from_clnt:long(clnt:long)
%{ /* pure */
struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
- THIS->__retvalue = atomic_read(&clnt->cl_users); /* FIXME: deref hazard! */
+ THIS->__retvalue = kread(&(clnt->cl_users));
#else
THIS->__retvalue = -1;
#endif