2017-10-31 21:39:35

by Davidlohr Bueso

[permalink] [raw]
Subject: Re: [PATCH v8 1/6] lib/dlock-list: Distributed and lock-protected lists

On Tue, 31 Oct 2017, Waiman Long wrote:

>+void dlock_lists_del(struct dlock_list_node *node)
>+{
>+ struct dlock_list_head *head;
>+ bool retry;
>+
>+ do {
>+ head = READ_ONCE(node->head);

Boqun had previously pointed this out; you need to WRITE_ONCE() node->head too.

Thanks,
Davidlohr

From 1582800381820199218@xxx Tue Oct 31 18:54:32 +0000 2017
X-GM-THRID: 1582800381820199218
X-Gmail-Labels: Inbox,Category Forums