From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933071AbdKASoL (ORCPT ); Wed, 1 Nov 2017 14:44:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51966 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbdKASoK (ORCPT ); Wed, 1 Nov 2017 14:44:10 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 21BB881DF8 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=longman@redhat.com Subject: Re: [PATCH v8 1/6] lib/dlock-list: Distributed and lock-protected lists To: Davidlohr Bueso Cc: Alexander Viro , Jan Kara , Jeff Layton , "J. Bruce Fields" , Tejun Heo , Christoph Lameter , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Andi Kleen , Dave Chinner , Boqun Feng References: <1509475860-16139-1-git-send-email-longman@redhat.com> <1509475860-16139-2-git-send-email-longman@redhat.com> <20171031213732.2nqqbdefvxxorg52@linux-n805> From: Waiman Long Organization: Red Hat Message-ID: <7dc0b507-fdb7-4d32-5d44-d2125409d73b@redhat.com> Date: Wed, 1 Nov 2017 14:44:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20171031213732.2nqqbdefvxxorg52@linux-n805> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 01 Nov 2017 18:44:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/31/2017 05:37 PM, Davidlohr Bueso wrote: > 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. Right, I will get that into the next version of the patch. Cheers, Longman