From 2849dc38aee8dfb61731d5824e0c6a48197709af Mon Sep 17 00:00:00 2001 From: mmason Date: Tue, 9 Oct 2007 18:05:54 +0000 Subject: [PATCH] rpc.stp: Replaced atomic_read()'s with kread()'s --- tapset/ChangeLog | 4 ++++ tapset/rpc.stp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 7f15e61bf..769d9ca37 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,7 @@ +2007-10-09 Mike Mason + + * rpc.stp: Replaced atomic_read()'s with kread()'s + 2007-10-09 Martin Hunt PR5153 * aux_syscalls.stp (_sighandler_str): No diff --git a/tapset/rpc.stp b/tapset/rpc.stp index 3d17d221b..eecdb796b 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 -- 2.43.5