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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB401C4332F for ; Fri, 30 Sep 2022 13:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbiI3NpH (ORCPT ); Fri, 30 Sep 2022 09:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbiI3NpC (ORCPT ); Fri, 30 Sep 2022 09:45:02 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF3E29815; Fri, 30 Sep 2022 06:44:59 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1664545497; h=from:from:reply-to:subject:subject: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=1OZgTaBWEcaQzJ86Oz30/kJlR6az74vxKOsEdbTFAX8=; b=A0hH8MBaojWkXd5MBGXcx223TV1FAeFKbsOV7KO33rF8lOh1R+g+timvuUZRci0tjKOY/6 4WSp5XDEnq9s8dmyh+lD4UgBe99oiQSBnJlWTBSpQlP+hL5f3f56XQkhA5Gek+yaXvQMA4 1ex1ZtEifGPYeytDCd4vKMK5at2db6tQwsJHHdlEQyR2gne4qMw8O6/LR6GVoi4FZVrdHr 3MlN0xXdJ8Ws8yxf8Gy7X5I2Ka6Bh+EENVAln4K8v7CJxi1go+y5n3YRllExpunejo1OfM n9PfbjD5wmnFsp2oP6ZXz/CRyhz72AXZx31Vz+3jdKFEMg4vaOShZP2SI84mbA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1664545497; h=from:from:reply-to:subject:subject: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=1OZgTaBWEcaQzJ86Oz30/kJlR6az74vxKOsEdbTFAX8=; b=ml64D/XgKJ0aKgPtgkwESGaanTx5W5HjeWZ6FbPWgTg4fCFqFLXodxONMIjY2+soQIrz7R yMn32SAGpGeSqyBw== To: Petr Mladek , Doug Anderson Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , LKML , Jason Wessel , Daniel Thompson , Greg Kroah-Hartman , Jiri Slaby , Aaron Tomlin , Luis Chamberlain , kgdb-bugreport@lists.sourceforge.net, linux-serial@vger.kernel.org Subject: Re: [PATCH printk 10/18] kgbd: Pretend that console list walk is safe In-Reply-To: References: <20220924000454.3319186-1-john.ogness@linutronix.de> <20220924000454.3319186-11-john.ogness@linutronix.de> Date: Fri, 30 Sep 2022 15:50:56 +0206 Message-ID: <87o7uxugbr.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-09-30, Petr Mladek wrote: > Anyway, what about using the later added SRCU walk here? > After all, this is exactly what RCU is for, isn't it? So I think a lot of the problems with this series is that SRCU is introduced too late. We are debating things in patch 6 that are irrelevant by patch 12. I will rework the series so that the changes come in the following order: 1. provide an atomic console_is_enabled() 2. convert the list to SRCU 3. move all iterators from console_lock()/console_trylock() to SRCU Step 3 may result in console_lock()/console_trylock() calls disappearing or relocating to where they are needed for non-list-synchronization purposes. John