]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/llist.c
x86/pkeys: Update documentation about availability
[mirror_ubuntu-bionic-kernel.git] / lib / llist.c
index ae5872b1df0c669fc8365ce1754d2a128651a890..7062e931a7bb4e8f2fb2937e065e6e062f049b2a 100644 (file)
@@ -41,7 +41,7 @@ bool llist_add_batch(struct llist_node *new_first, struct llist_node *new_last,
        struct llist_node *first;
 
        do {
-               new_last->next = first = ACCESS_ONCE(head->first);
+               new_last->next = first = READ_ONCE(head->first);
        } while (cmpxchg(&head->first, first, new_first) != first);
 
        return !first;