Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3296819ybz; Mon, 27 Apr 2020 13:31:49 -0700 (PDT) X-Google-Smtp-Source: APiQypLL5msAYuoQkvisJTTXkvwhEnfPvjWMid4XXZxTpJgsLkbYUQ/JRodK6U/4Cc8ivTgauY/n X-Received: by 2002:a17:906:3713:: with SMTP id d19mr20419757ejc.111.1588019509551; Mon, 27 Apr 2020 13:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588019509; cv=none; d=google.com; s=arc-20160816; b=N3FxKdtsHyPVX4CeceubF9o6rpAnGwvzMo0hCTCqeQ1d+fJXv7Td91z1tATQTktNTI yzsr6XFqW0FCUB4p5orSyECPhy/x+Gd5Ju9GhLknOaGMQuNTz3TlbvyrofxjE9e9nJ2M xgUe87bL0KvDKf+TIU8py4XU/ZIC6IJJpOdAk1oVFDVAyFy7eXuxjVFD62AD512FwBMR 4SWXfHNtLoituPQ4S6sUnYcC76nD9e9RAkSFtejv1u9TEqVF6UZPoSF3GtOcYmtenJfG 0n3mgS7gH5W+YUobeJVGLIsl5P/dWiLAQxUFNuCIdk+3UQDmabKhpPJqU8pxIv2a+moE I4qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ai+rmEpn02qg4BdEO/ZE6kOX/94j7td8pRB+ptKEnVM=; b=syGrMEA4QE2HeNmeHBsKzTeLVOVFKqX3+olBKrp6QhY8N79s3KBYMdlO5eINX+QD1b ZqZAiG0zsKYMMWP5KEekTk1OsXtnQRckmbqF0HzzDtQdQa09K24NX3cnRlk8vBv0y2uI BpgKBhgNDEXSlcfrq7sse/x+4m0wANB6OPGdZ3764Nx9mDnViTs1yUkLQuYWfPkEj+Tt GjcOo7NzlT4Z5aJo290XeNYinKiHng/7EuNhzh6xMwqFCoduUKKo98Dy/g3QAMoqIWCv YNr58c2KYCJ+uk28J9L+ap9ovbylYWQUEaT2+YnW5zm9iB3b0maZ/I/b998W0YfQJSrb kewQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=O1lgqypR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo10si384100edb.19.2020.04.27.13.31.26; Mon, 27 Apr 2020 13:31:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=O1lgqypR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726815AbgD0U2A (ORCPT + 99 others); Mon, 27 Apr 2020 16:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726205AbgD0U2A (ORCPT ); Mon, 27 Apr 2020 16:28:00 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7BFC0610D5 for ; Mon, 27 Apr 2020 13:28:00 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id l19so19057610lje.10 for ; Mon, 27 Apr 2020 13:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ai+rmEpn02qg4BdEO/ZE6kOX/94j7td8pRB+ptKEnVM=; b=O1lgqypRxFfC+vFZsk3/9/KPI2PcZLA1mM/B20gc8yvnWS47pxSazg3digWF06v8IL RKAAvSH2pMe/bStrBhAr1F9weq0Mr/w01Euy1dRvf3JlL/YV1rIWnHbyzEnsfoJAv5qf C2xIbuvQvx9oklaGI3hdIGJx3zSFp3Uf5kvuY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ai+rmEpn02qg4BdEO/ZE6kOX/94j7td8pRB+ptKEnVM=; b=l0XoAEH6iOBGYfDRJaVuHfVtceI/RUIhpJ4dMwc1glgHQ9JIkbXsNdM0cm7/xoNHAH z8In7/blGQtbwUberfgLLHXPcJzhnx//aSSuHnnd0BUfAH14pKUEqZgua8fTa3fzcUxF 4FzTu88XYLSGPBAy4gnAluVjncl94jKmidhYksqnILsS9b9KBOrsYuOm8hBtG1xeDRJ6 YuOv83tD2/DkwnHPmDgWp1yXJ8gSEWftZVSdYIaCC80fjEjF6EQbHfArMq2wyjZBHJ4u FtLjKjVRyHkonoCagPS5DHOc2oETGZnVQQaIU8zDViiSrDWL14zAvzmOcL2DKXQv9+Bo aDag== X-Gm-Message-State: AGi0PuYsrYz7jMJhvWt7C+FoI9aLxhpG++BCCVCnP+31dGe+qFInQOBT EJjAZSKWfvZeYAZ2I9TXXAdDyEHFm6E= X-Received: by 2002:a2e:2245:: with SMTP id i66mr15634106lji.191.1588019277860; Mon, 27 Apr 2020 13:27:57 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id m15sm5631294lji.21.2020.04.27.13.27.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Apr 2020 13:27:57 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id e25so19076343ljg.5 for ; Mon, 27 Apr 2020 13:27:56 -0700 (PDT) X-Received: by 2002:a2e:3017:: with SMTP id w23mr15585804ljw.150.1588019276500; Mon, 27 Apr 2020 13:27:56 -0700 (PDT) MIME-Version: 1.0 References: <20200419141057.621356-1-gladkov.alexey@gmail.com> <87ftcv1nqe.fsf@x220.int.ebiederm.org> <87wo66vvnm.fsf_-_@x220.int.ebiederm.org> <20200424173927.GB26802@redhat.com> <87mu6ymkea.fsf_-_@x220.int.ebiederm.org> <875zdmmj4y.fsf_-_@x220.int.ebiederm.org> <878sihgfzh.fsf@x220.int.ebiederm.org> In-Reply-To: <878sihgfzh.fsf@x220.int.ebiederm.org> From: Linus Torvalds Date: Mon, 27 Apr 2020 13:27:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/6] rculist: Add hlist_swap_before_rcu To: "Eric W. Biederman" Cc: LKML , Linux FS Devel , Alexey Dobriyan , Alexey Gladkov , Andrew Morton , Alexey Gladkov , Oleg Nesterov , Thomas Gleixner , "Paul E. McKenney" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 27, 2020 at 7:32 AM Eric W. Biederman wrote: > > Would hlists_swap_heads_rcu be noticably better? Edited out most of the rest because I think we're in agreement and it's not a huge deal. And yes, I think it might be nice to just call it "swap_heads()" and make the naming match what the user wants, so that people who don't care about the implementation can just guess from the function name. But I also think that by now it's mostly bikeshedding, and I'm probably also now biased by the fact that I have looked at that code and read your explanations so it's all fresh in my mind. A year from now, when I've forgotten the details, who knows which part I'd find confusing? ;) Linus