X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=ltt-ascii.c;fp=ltt-ascii.c;h=ad128e8bcd4708bd3288f4f0184bd0549ea1b77e;hp=b020fedb39a62ea1771e51d52006e2b6ed7db70d;hb=0bc7b65420e79fa789f62b1f21ebbee787d7a29f;hpb=8fad657cf85299e39ab377b9df4bfb2df5f685a3 diff --git a/ltt-ascii.c b/ltt-ascii.c index b020fedb..ad128e8b 100644 --- a/ltt-ascii.c +++ b/ltt-ascii.c @@ -543,7 +543,7 @@ void ltt_ascii_remove(struct ltt_chan *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); }