Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp990474ybl; Fri, 31 Jan 2020 11:48:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzDpoYYoQnS1ONRFWpi7NVa4SjXpXfkVN5kjBa3S1t6PlDechgFx1eFvW906faqeXGnVAXN X-Received: by 2002:aca:f587:: with SMTP id t129mr5610153oih.143.1580500118461; Fri, 31 Jan 2020 11:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580500118; cv=none; d=google.com; s=arc-20160816; b=jcXn/FsV6280Ul+SsSbnHHZaWhiNnAmwlQE+qdk4mew5B7dRkSbFCNOTk84VmZ4AAU xsSJO5TNq6ijl9CNJB4wNyhrz4NgLk0jIC0mQ6ZqSCJKaabGRcFwDgTPvttir3ekQbv3 AgMz8uRSYLzhbiOkodFc2LbvWEVhxkFp2gS0LHvMYi8XvftRFgHx5iX+vJ/5zFlFmShy 0k0S3RRu3MFGA28hpOTWw4pzD2PbMXpLASsriF2SbRHvXVui6ZlVmGv7pGOfRVrqgFyo WsSOqGSD8gR/spt63L76jA3vlDrkVvS2J1z3j6hcZgqIVShSbNcFzKFTmeBS2aNa1UYF MzHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=AxHBJDH3RTFDcIsqqqMXceVsulCxGWIHWPN1JYiAYDw=; b=CqZVsSx7+oDzmNsRM5n9iWtXPrWB7Q+kvvCGXkiANx9e30bxLAGvSvrovJLHBE7/6r B/ROZHlpIsWRNosRsY3fTk4LQkE9ZPKzTANFHmRIEQJa6KDF7HD++y5mGjvVlgqQGyS+ Q1jKU+j7xV4VJCNHyVgP5POQ6KmqPrz2UNhYzB8F5eQGtuOOjKi/B59cBgxA3eiOL1yg qDgZTi/oi2482DLFoWmPDz2zVRFbHUdRJERLF5HsTTH3sv52oa0sQa3EPdklQ8NNW+rV SvxaprqKIMY0JPbb+pVCS8qR3Jk9IrucklI9DBjLn6rEyudPtkkW2tVnaNx21B63GFy0 PqnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si1327369oic.20.2020.01.31.11.48.26; Fri, 31 Jan 2020 11:48:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbgAaTre (ORCPT + 99 others); Fri, 31 Jan 2020 14:47:34 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:56602 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgAaTre (ORCPT ); Fri, 31 Jan 2020 14:47:34 -0500 Received: from 51.26-246-81.adsl-static.isp.belgacom.be ([81.246.26.51] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ixcGH-0004bP-D1; Fri, 31 Jan 2020 20:47:29 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 5171C105BDC; Fri, 31 Jan 2020 20:47:23 +0100 (CET) From: Thomas Gleixner To: Eric Dumazet , Will Deacon Cc: "Paul E. McKenney" , the arch/x86 maintainers , LKML , Peter Zijlstra Subject: Re: Confused about hlist_unhashed_lockless() In-Reply-To: References: <20200131164308.GA5175@willie-the-truck> <20200131165718.GA5517@willie-the-truck> <20200131172058.GB5517@willie-the-truck> Date: Fri, 31 Jan 2020 20:47:23 +0100 Message-ID: <87blqj4ddg.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Dumazet writes: > On Fri, Jan 31, 2020 at 9:21 AM Will Deacon wrote: >> Without serialisation, timer_pending() as currently implemented does >> not reliably tell you whether the timer is in the hlist. Is that not a >> problem? > > No it is not a problem. Even if we would take the base lock then this is just a snapshot, which can be wrong at the moment the lock is dropped. So why bother? Thanks, tglx