Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4098154yba; Tue, 9 Apr 2019 11:05:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLUiIo7J05LGoC2xAUrdhybA1TwJc0ownWg/wPTTWgBp56TeigQhgu5UjskFmkJjfUT+KD X-Received: by 2002:a63:5149:: with SMTP id r9mr34656533pgl.177.1554833116782; Tue, 09 Apr 2019 11:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554833116; cv=none; d=google.com; s=arc-20160816; b=exPlA6nnO06oxfLsSnbhpEftrhWD7tOKsHvF/TBJfAOL0fOxOsLp053iuIQmc2oAb/ 14nhlRpscXg/CKEElfUQZDHz2Xx7aQmViWFMRfMBjIqBEF7LDpm4mDi31IdjIgn3OpF7 XOc+WT6kUpo7bxSRaf6h9Ixr53uVFCrQiPqbTTs71QrvDC0JQMmQ+MdMmGXkWUm1bP2p +5AOYOJwkj+Z1rD05GiwsG3PD2wrCTpYvMnWjplBi92Loe7onaNvkJ8kjhEiFRkg79AQ mtcHmr8Y/yWMVpTB85uRK+RnXRPaepBr2HiAdxOucKAa9frYX2/HK9Y7sBOW3tamjkvQ Df/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=VfQA+VZW6DRvoaNiqMwxD824ovVtDIRsG2jjoOuGPXo=; b=Gf6lj+3u81rTMjXYjd135u5bo7C0Qyrm74xwH/fqxd7U6S6cKegQcvvymT/fso5aRM 70nwEcVLzRPFdBot4Rkat1R8IW5XEJRbzKvkuCB6AHSH08i3cEM4IkQhZ+HyGpYjyXwK Occk/+xFP+PT9VlbcqAgBaEPLa/6wYiNtXMcCTFiTtdjP0/pXBO3iJWaub5u8Ei/D7T0 j5z7W49CuiyKze0zW3wEulSGsmifAv1IyGNDsE8f8DN5v9RggTqcenUtX66jlXPjcPFN aA7Z+AJ2UeUyfrVIFYw0oPhgov+MMNreuopJlOw7v0CgOHgyWBUpNsNBpqRIf2gvX+0K cphg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=ZRHXZYI2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si29999700pgg.1.2019.04.09.11.05.00; Tue, 09 Apr 2019 11:05:16 -0700 (PDT) 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; dkim=pass header.i=@efficios.com header.s=default header.b=ZRHXZYI2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726554AbfDISEO (ORCPT + 99 others); Tue, 9 Apr 2019 14:04:14 -0400 Received: from mail.efficios.com ([167.114.142.138]:40220 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbfDISEN (ORCPT ); Tue, 9 Apr 2019 14:04:13 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 007AA1BEAA2; Tue, 9 Apr 2019 14:04:12 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id EySNUnMEFT8q; Tue, 9 Apr 2019 14:04:11 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 565AE1BEA9C; Tue, 9 Apr 2019 14:04:11 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 565AE1BEA9C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1554833051; bh=VfQA+VZW6DRvoaNiqMwxD824ovVtDIRsG2jjoOuGPXo=; h=Date:From:To:Message-ID:MIME-Version; b=ZRHXZYI26hRLoWHRZVE/9nTaVn+1xTlV2AHPy5o9HcprGLM44GCn+ml7MeLDmhXhC 2JPgsm5dJ8Mv6cwaj2hfkoPlStSqdnMI7lGSGgiEMkN0Nb9UDmAmCc0kGrQzcWHN8Q Y8XfVJzQuGnu4cvU9WaCbp89CCkX2aJBEhcCuZ6Bv2nu7E94LyKM+F+2Z3y84QK219 QwdmXjt47Wofi8c/x6LL11Csk3J8BMPK7D5gZNPbIP4zjlHZ5t+fSOgwI9tpsjJUvf lUx+dq248LNITxJW4axeaf2hxyIl/wGFWsqMth0J11na7Vq0FsZ6pQwWGExPou8yIo qCB6XTJPIqZLQ== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id dhzaK3gRoEbG; Tue, 9 Apr 2019 14:04:11 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id 2F2101BEA8E; Tue, 9 Apr 2019 14:04:11 -0400 (EDT) Date: Tue, 9 Apr 2019 14:04:11 -0400 (EDT) From: Mathieu Desnoyers To: paulmck Cc: "Joel Fernandes, Google" , rcu , linux-kernel , Ingo Molnar , Lai Jiangshan , dipankar , Andrew Morton , Josh Triplett , Thomas Gleixner , Peter Zijlstra , rostedt , David Howells , Eric Dumazet , fweisbec , Oleg Nesterov , linux-nvdimm , dri-devel , amd-gfx Message-ID: <1445093299.2510.1554833051142.JavaMail.zimbra@efficios.com> In-Reply-To: <20190409175549.GG14111@linux.ibm.com> References: <20190402142816.GA13084@linux.ibm.com> <20190408154616.GO14111@linux.ibm.com> <1489474416.1465.1554744287985.JavaMail.zimbra@efficios.com> <20190409154012.GC248418@google.com> <534133139.2374.1554825363211.JavaMail.zimbra@efficios.com> <20190409164031.GE14111@linux.ibm.com> <1958511501.2412.1554828325809.JavaMail.zimbra@efficios.com> <20190409175549.GG14111@linux.ibm.com> Subject: Re: [PATCH RFC tip/core/rcu 0/4] Forbid static SRCU use in modules MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.12_GA_3794 (ZimbraWebClient - FF66 (Linux)/8.8.12_GA_3794) Thread-Topic: Forbid static SRCU use in modules Thread-Index: eaTU93Z6CPbs7/dhixfg/R5CiWN2qQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Apr 9, 2019, at 1:55 PM, paulmck paulmck@linux.ibm.com wrote: [...] > The current state is not horrible, so my thought would be to give it > some time to see if better thoughts arise. > > Either way, cleanup_srcu_struct() keeps its current checks for callbacks > still being in flight, which is why I believe that the current state is > not horrible. ;-) In that case, I think the comment above cleanup_srcu_struct_quiesced() in include/linux/srcu.h needs to be updated to cover situations where API users statically define a SRCU domain in a module and intend to unload that module. Given that we end up doing the allocation/cleanup under the hood, the API users don't interact with init_srcu_struct() nor cleanup_srcu_struct(), so it's not obvious that this comment also applies to them. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com