X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt-relay-alloc.c;h=03a6ffa0e83827fccc58b19db953f762e7527e8c;hb=0bc7b65420e79fa789f62b1f21ebbee787d7a29f;hp=43246a73d38f7e3f9e6b929b66c6af03e99e0f38;hpb=8fad657cf85299e39ab377b9df4bfb2df5f685a3;p=lttng-modules.git diff --git a/ltt-relay-alloc.c b/ltt-relay-alloc.c index 43246a73..03a6ffa0 100644 --- a/ltt-relay-alloc.c +++ b/ltt-relay-alloc.c @@ -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); }