X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-relay-alloc.c;h=03a6ffa0e83827fccc58b19db953f762e7527e8c;hb=refs%2Fheads%2Fv0.19-stable;hp=43246a73d38f7e3f9e6b929b66c6af03e99e0f38;hpb=031e36b31fc9aa1ca6dcaa35091bffa3b4b59555;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); }