Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp548904pxj; Thu, 17 Jun 2021 08:28:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOM3YZ5dKSSR1Gc3ZEhLpY3CodHIpp5plC1aQZfmKZQw2mSNlxS0tQ2jAS2FYz2C+VC68t X-Received: by 2002:a92:dac3:: with SMTP id o3mr3881689ilq.290.1623943739304; Thu, 17 Jun 2021 08:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623943739; cv=none; d=google.com; s=arc-20160816; b=dn5im23eDa4iRQCSXGLoXiN3oPAzvHWCGSuc7DRzz3raIoPOL5PW9NzvpPxPhRbIfF 82f8riHmWNJ4ocCMjQNcz4B9jVaQi8G7LB4hq+K83RwVGZcvzWXW20j75GSPVI4cJITw iCKmRNRdtMPegwFsJf/UByEJc+VQt72/+SCrtHd8KFzcvttnOggtiHalFiqtSLcwUQwt Jr6yb1ZxVn96NL/gUm0MpbbkC6S0s9Cqpe5xZ67XI/J1Ib0Uv1sd/HlRp9VSyNE6ImKp OXo8c71eawtNi8acTBTCJTqAXxWxJimKrXa0CX1JqRSIznS7U6EhvSVwW0as1Ptx3dHt b2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HX1faego5vfkn9CY9e5adLzo+Nz153gQ8o/qvgIZ4QI=; b=mnUu1fR5h0QhfmZchjllNg2kSULLLjAVGObU/S4uRSwxyPOABkJIY+7SpY3TwIn1YV /Xngis7BMFb+cJGswGLulFG2tSyq7htxqBHQ+FW+CF7cCjOxrlIOBM/yUyrPeGQ+Kikn eNImlmRCIFrhUr3knjpl3ZhIfw30LqvrvaDKhzvSt1unddKwkGrWKeXx0hncxTSpEeda varP/pzUsjoZ++9F1kOOPQ3MptHPDJZ5Kke7NvJfTKwUOLBf1Bc3bU9QRnoctgL5mYqf ux40jJ+6lh15qx1CO3FlVNT7oorQ0NoFOEB6Jbr1gY0YYHd70QIITzASUVN5HW9e/hqe vjdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="nRRU/oL5"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si5930364ilm.43.2021.06.17.08.28.46; Thu, 17 Jun 2021 08:28:59 -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=@suse.com header.s=susede1 header.b="nRRU/oL5"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232536AbhFQLZ3 (ORCPT + 99 others); Thu, 17 Jun 2021 07:25:29 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:34180 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbhFQLZ3 (ORCPT ); Thu, 17 Jun 2021 07:25:29 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 5D47E1FDD5; Thu, 17 Jun 2021 11:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1623929001; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HX1faego5vfkn9CY9e5adLzo+Nz153gQ8o/qvgIZ4QI=; b=nRRU/oL51WtuiFHZRbFzQEfpDS5qHd56zU5QuZ24VdJteb+n8GqUv4ho7kVJHE75HCcauz LB6ewQkBxZt9mcFxyHV8KFIFNGriE1rqiGPMHvrwBRxx18CPe6ZT+5JJzNNpaJ4sU3s5u6 Ky6Q3FIVHFyehA3xMHvgkc4JwzH+fKY= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id D514BA3BB8; Thu, 17 Jun 2021 11:23:20 +0000 (UTC) Date: Thu, 17 Jun 2021 13:23:20 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Stephen Rothwell , Andrew Morton , Peter Zijlstra , Daniel Bristot de Oliveira , Stephen Boyd , Alexander Potapenko , "Paul E. McKenney" Subject: Re: [PATCH next v4 0/2] introduce printk cpu lock Message-ID: References: <20210617095051.4808-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617095051.4808-1-john.ogness@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2021-06-17 11:56:49, John Ogness wrote: > Hello, > > While working on removing the safe buffers for printk [0] we > stumbled on a cpu-reentrant spinning lock used by dump_stack(). This > type of lock (dubbed a cpu lock) will cause deadlock risks once we > introduce atomic consoles because atomic consoles also need such a > lock. > > Although we are not yet ready to introduce atomic consoles, this is > an appropriate time to provide an official cpu lock to be used for > all things relating to printk (including the atomic consoles, once > they are introduced). > > An example of cpu lock usage for atomic consoles can be found in the > PREEMPT_RT tree, such as the serial8250 implementation [1] of an > atomic console. (In PREEMPT_RT the printk cpu lock function was > named console_atomic_lock/_unlock.) > > This series is against next-20210616. > > John Ogness (2): > lib/dump_stack: move cpu lock to printk.c > printk: fix cpu lock ordering For both patches: Reviewed-by: Petr Mladek The patchset is ready for linux-next from my POV. We are getting close to the merge window so I am going to push it tomorrow. We could always remove it when anyone has comments the following week. Best Regards, Petr