From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3F38C2BA2B for ; Thu, 16 Apr 2020 20:56:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BC9D206D5 for ; Thu, 16 Apr 2020 20:56:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728248AbgDPU4l (ORCPT ); Thu, 16 Apr 2020 16:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728160AbgDPU4k (ORCPT ); Thu, 16 Apr 2020 16:56:40 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AB77C061A0C for ; Thu, 16 Apr 2020 13:56:40 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jPBYq-0006PK-CP; Thu, 16 Apr 2020 22:56:36 +0200 Date: Thu, 16 Apr 2020 22:56:36 +0200 From: Sebastian Andrzej Siewior To: Joel Fernandes Cc: "Paul E. McKenney" , Uladzislau Rezki , rcu@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Thomas Gleixner , Mike Galbraith Subject: Re: [PATCH 1/3] rcu: Use static initializer for krc.lock Message-ID: <20200416205636.fdljtricn6i3a2ub@linutronix.de> References: <20200416153844.GA8191@pc636> <20200416154647.ceotefna34pdxpfi@linutronix.de> <20200416160129.GA8337@pc636> <20200416161149.lkvkfwevanff36kb@linutronix.de> <20200416161819.GA8551@pc636> <20200416163302.3fsroillwk2om5dh@linutronix.de> <20200416172953.GR17661@paulmck-ThinkPad-P72> <20200416182309.zytrgowlngpewxbt@linutronix.de> <20200416182948.GV17661@paulmck-ThinkPad-P72> <20200416184348.GB149999@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200416184348.GB149999@google.com> Sender: rcu-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org On 2020-04-16 14:43:48 [-0400], Joel Fernandes wrote: > > Fair enough! IIRC, get_page() uses non-raw spinlocks, so... > > Oh, I see Paul made the same suggestion I did for raw spinlocks. > > migrate_disable() is fine, but note that in the later code we will not be > sleeping even during the get_page(), so I don't see a problem with raw > spinlock... did I miss something? The buddy allocator, which get_page() is using, is using spinlock_t which is a sleeping lock. You can't have memory allocations within a raw_spinlock_t section even with GFP_ATOMIC on PREEMPT_RT. > thanks, > > - Joel Sebastian