Updates for kernel 2.6.38
[lttng-modules.git] / ltt-relay-alloc.c
index 43246a73d38f7e3f9e6b929b66c6af03e99e0f38..03a6ffa0e83827fccc58b19db953f762e7527e8c 100644 (file)
@@ -360,7 +360,7 @@ void ltt_chan_alloc_remove_files(struct ltt_chan_alloc *chan)
                 * Wait for every reference to the dentry to be gone,
                 * except us.
                 */
-               while (atomic_read(&dentry->d_count) != 1)
+               while (ACCESS_ONCE(dentry->d_count) != 1)
                        msleep(100);
                dput(dentry);
        }
This page took 0.024466 seconds and 4 git commands to generate.