Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp358651rwi; Wed, 26 Oct 2022 01:41:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4izp8Jak79depDu8pKlovs7rpXzxln34hkQVMOPfQYPGfRt6vWKJ0kPH70KQ34hFzYnHWz X-Received: by 2002:a05:6402:1a48:b0:461:900a:7f0d with SMTP id bf8-20020a0564021a4800b00461900a7f0dmr18035606edb.125.1666773696816; Wed, 26 Oct 2022 01:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666773696; cv=none; d=google.com; s=arc-20160816; b=I3xatPlrfcwFS4ATxgYsIOETrVi5u7pk6fuv1sAZxhII/euyIbKqi3h+MmDO8xtXJK /A88LlZWJm2Rgz36TIEhqjgSmH4ibXR7BDemj+SGGCIHs53/wuSu6ZZW09TGVJRxq3ha S3+z9EICkmdHaZus0zAfzwR03jdyF104eCCoHzWSV14HqrSOP9cuu/+eRta8+mqWBNFZ KqmZBmERGuZ+gI4zmlGYaeE9he1LEp1U92PtZCvpjnDAdMgQrtOppYap8YEkB9w5Waik KYyq5K1/zJaRgOefhMiIjyqsdM/tRFnac6T58Wv7SvZnJha73Ub5pC0Vhg4OdgcljbZx RuXg== 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=zVU2aHnaAH7d6c5G2vGY5kQYIwa1i3dY4wuvkxw6czE=; b=NUstS8YosL/mZsfOP8JSxro6m0ffFtYUAKCwTFi8m89pcECq1uhqoCcDdrePIB+Up8 7UnjyC8AMAK1eSmnMXlph7y+bJiEY8cotQYNMWHXT0h8ycv5rcyqoCEr/Bs0f3FqxKdB RngQNKbwEVLVlXf5Lp8cmD60K6YEbAZ7pmg/adJJ6y5qS/vpzXcveeNfeaU4pCm5mmfD X8LkRIPh2Ynwz93gbaaG5NkMsE9F6NgqMpWFfaJ46V++JCbS7xRoD/VEBE07z8qlVHcP L1iCtUb73JvEpo8qCSZjxwFl3ZJV0NaCmUn1mA+6Qs8YUgZrMvje8uKOgV0onL03ClHI tuiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=mase5czr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170906794f00b0078d23ac6981si5322890ejo.790.2022.10.26.01.41.10; Wed, 26 Oct 2022 01:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=mase5czr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbiJZIdT (ORCPT + 99 others); Wed, 26 Oct 2022 04:33:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbiJZIdR (ORCPT ); Wed, 26 Oct 2022 04:33:17 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7295FDE2 for ; Wed, 26 Oct 2022 01:33:16 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 24A7022061; Wed, 26 Oct 2022 08:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1666773195; 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=zVU2aHnaAH7d6c5G2vGY5kQYIwa1i3dY4wuvkxw6czE=; b=mase5czrxqPAgDCctSqhxEbUugxDoJdBH6V2rAd4XUJwE3L9xkKEQERBABORfOB2A7epqL 8G/ZmhiVwTVSOIfvkVYsxvU48e01mE7vfDJRJAK6dN+ZsI3NnI78fIuW5c+Te6QnL0rtQl XxQ7h/aMu5SM5EG8hMBmihazaYuOLKs= Received: from suse.cz (unknown [10.100.201.202]) (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 EF9442C141; Wed, 26 Oct 2022 08:33:14 +0000 (UTC) Date: Wed, 26 Oct 2022 10:33:14 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 32/38] printk: __pr_flush: use srcu console list iterator Message-ID: References: <20221019145600.1282823-1-john.ogness@linutronix.de> <20221019145600.1282823-33-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221019145600.1282823-33-john.ogness@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2022-10-19 17:01:54, John Ogness wrote: > Use srcu console list iteration for console list traversal. > > Document why the console_lock is still necessary. When thinking about it. It might be worth explaining why the srcu traversal is added even when console_lock is still needed. It would make the life of code archaeologists easier. I mean to add a note that it will keep the traversal safe even after console_drivers list manipulation will not longer be serialized using console_lock(). Or something like this. It would be nice to add this to all other patches the introduced srcu and kept console_lock. > Signed-off-by: John Ogness Anyway, the change looks good. Feel free to use: Reviewed-by: Petr Mladek Best Regards, Petr