]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/fcntl.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[mirror_ubuntu-bionic-kernel.git] / fs / fcntl.c
index 448a1119f0becff3d871a98d8e6cee9b673b2652..57bf2964bb831cb1fd67331ccc5f314b0876bf89 100644 (file)
@@ -724,7 +724,7 @@ static void send_sigio_to_task(struct task_struct *p,
         * F_SETSIG can change ->signum lockless in parallel, make
         * sure we read it once and use the same value throughout.
         */
-       int signum = ACCESS_ONCE(fown->signum);
+       int signum = READ_ONCE(fown->signum);
 
        if (!sigio_perm(p, fown, signum))
                return;