From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932484AbdJaVih (ORCPT ); Tue, 31 Oct 2017 17:38:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:54456 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbdJaVif (ORCPT ); Tue, 31 Oct 2017 17:38:35 -0400 Date: Tue, 31 Oct 2017 14:37:32 -0700 From: Davidlohr Bueso To: Waiman Long 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 Subject: Re: [PATCH v8 1/6] lib/dlock-list: Distributed and lock-protected lists Message-ID: <20171031213732.2nqqbdefvxxorg52@linux-n805> References: <1509475860-16139-1-git-send-email-longman@redhat.com> <1509475860-16139-2-git-send-email-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1509475860-16139-2-git-send-email-longman@redhat.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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