sunrpc: fix potential races in pool_stats collection
[deliverable/linux.git] / include / linux / sunrpc / svc.h
index 7f80a99c59e4c7633bb2a869c06be67a805b9b12..513957eba0a56cb9ea5fd4b4a9116a765566b77e 100644 (file)
@@ -26,10 +26,10 @@ typedef int         (*svc_thread_fn)(void *);
 
 /* statistics for svc_pool structures */
 struct svc_pool_stats {
-       unsigned long   packets;
+       atomic_long_t   packets;
        unsigned long   sockets_queued;
-       unsigned long   threads_woken;
-       unsigned long   threads_timedout;
+       atomic_long_t   threads_woken;
+       atomic_long_t   threads_timedout;
 };
 
 /*
This page took 0.027203 seconds and 5 git commands to generate.