Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1395614rwb; Wed, 16 Nov 2022 17:14:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5k9TEuvUu4r1QFd4x+mMiclAcuvZJYUuVjC0iDbW7hwCTgz+K+thXyvm3otMuW3HDQZJ81 X-Received: by 2002:a05:6402:10c3:b0:468:4c9a:7c6c with SMTP id p3-20020a05640210c300b004684c9a7c6cmr212385edu.397.1668647686559; Wed, 16 Nov 2022 17:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668647686; cv=none; d=google.com; s=arc-20160816; b=XgTzxrZkyHHBcFfy6/TF409sDl4dVrRNQVj3yGTdXDA5QTgNgyLwuU6U39P2ycEVqY ODF6coijeRR7S9s5PHl6ZuK6H9EMNZPjoUh+kZ8zgUOJhtcS98MlUSskWfOaZfOsvv/G UUyA6zcTwM/WfinUAwotXQ4Dk6rbyA+DsW8HdV6F254WUj/7vKZh3rBmZAEpQSoheSTa VZ0PzFrBbDNblKT4VKYqizW9/wv6EEOImylFZu4Ix68pg7mI4gXQWYYnRKr0UnL9XiuQ wwohzw6LIADqTTPvtA+z6Rgx+6Kzd7GBzOF7t3fW9LnRUaPg7EewKdsCBhWk90gk7Amw 9rtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=457d9iQgit+Z1EJB0nqQekgVdEZwOgAEMvvOEWPkupI=; b=0cpWOyBOvhJU+2px58o5ksFjc3+WsY6NNMPFldc9qJWcETE7boQ9otap0QtNKterdd cyG7rY1Ixkylw9jT5E2SaPLp/csF9rsfkQRG+vcfvqNsBU4akfCiBN8e1MuNjCrT96Ui 4ORfV2UKV2PTJLype1bXmkAoF9e2bPzo3je7TIz4zwCpIQ3XIZp9bwmQuNZvNMDECoSq h2BApwHT2F3vdfho4nJzcvo3Q138tSIm/fyyRJHSGlzGUUk+YUh/pFqU01Ho8qH72pET q11tHSBRqNll3MkINdM7HWczcNdFJ7RsreMUJofarA3XM7R8whgznUl/pVv0Gsz3Q5FJ kMzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Bh70kUdS; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd35-20020a17090796a300b0072a477a55e0si9984884ejc.369.2022.11.16.17.14.25; Wed, 16 Nov 2022 17:14:46 -0800 (PST) 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=@chromium.org header.s=google header.b=Bh70kUdS; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234677AbiKQA7q (ORCPT + 90 others); Wed, 16 Nov 2022 19:59:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238592AbiKQA7l (ORCPT ); Wed, 16 Nov 2022 19:59:41 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C11BA6A6B9 for ; Wed, 16 Nov 2022 16:59:40 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id l11so401806edb.4 for ; Wed, 16 Nov 2022 16:59:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=457d9iQgit+Z1EJB0nqQekgVdEZwOgAEMvvOEWPkupI=; b=Bh70kUdShhAGETdykikAQJOKTnFptoZPW3kSYZE+AGERi5jQgkT24kHTMqNAWR10tU BuAeJQu/Oi7S5Fcd6875vVxSldt7DeCbJfaCEzyokpntEoPmNCfgg0zYiuf//Cx60LbX eL07Ybiq3UPZ7/QNaNsuVClF+LzfF5L0ZCzFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=457d9iQgit+Z1EJB0nqQekgVdEZwOgAEMvvOEWPkupI=; b=BAaX2D7/i+jounNEz0RG0mMNFTDaD/kCklSdTXpMEHhcTEipwkz6OmWY1AWSpL0ay0 cf3iDumuqvMqvXyhtI9fnbIuKURTAYMNdaayWDkV6EsFQ3T4fCv6j4yMj0byfuaW4qnL Tkue/RSuR0Zk+i8upCH5wVDvddRvTPXJMDEs5g7awCrUFhUj3ZuLiAN9OFdsrTgaPmrP VhO/V06XRUruYcIknbwTYlgsoKPEPXOnf7ysZ+6Vb+xU73I5iF037SssFkHlhfOkx+7y whONvjRC4guiZ38Xwsl5rmtp9CjGSgiiP6YVz/Jfq04r0GKus8Zxt+2rqblHN2RRQM+9 GqKA== X-Gm-Message-State: ANoB5pkwbOgzl3dS8+iQoX5uPJ+F4OxQYeEqGk8mA+imEk3Y+APorMM5 dh7iTn9xUM9EVM8OtovIKt7hpBoVIV4D3KK8 X-Received: by 2002:a05:6402:1386:b0:458:d7b5:9793 with SMTP id b6-20020a056402138600b00458d7b59793mr174803edv.377.1668646778757; Wed, 16 Nov 2022 16:59:38 -0800 (PST) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com. [209.85.128.44]) by smtp.gmail.com with ESMTPSA id ga22-20020a1709070c1600b007aee947ce9esm5932987ejc.138.2022.11.16.16.59.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Nov 2022 16:59:36 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id 5so146996wmo.1 for ; Wed, 16 Nov 2022 16:59:35 -0800 (PST) X-Received: by 2002:a05:600c:1e12:b0:3cf:9ad3:a20e with SMTP id ay18-20020a05600c1e1200b003cf9ad3a20emr110075wmb.151.1668646775488; Wed, 16 Nov 2022 16:59:35 -0800 (PST) MIME-Version: 1.0 References: <20221116162152.193147-1-john.ogness@linutronix.de> <20221116162152.193147-37-john.ogness@linutronix.de> In-Reply-To: <20221116162152.193147-37-john.ogness@linutronix.de> From: Doug Anderson Date: Wed, 16 Nov 2022 16:59:23 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH printk v5 36/40] tty: serial: kgdboc: use console_list_lock for list traversal To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jason Wessel , Daniel Thompson , Greg Kroah-Hartman , Jiri Slaby , kgdb-bugreport@lists.sourceforge.net, linux-serial@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi, On Wed, Nov 16, 2022 at 8:22 AM John Ogness wrote: > > configure_kgdboc() uses the console_lock for console list iteration. Use > the console_list_lock instead because list synchronization responsibility > will be removed from the console_lock in a later change. > > The SRCU iterator could have been used here, but a later change will > relocate the locking of the console_list_lock to also provide > synchronization against register_console(). > > Note, the console_lock is still needed to serialize the device() > callback with other console operations. > > Signed-off-by: John Ogness > Reviewed-by: Petr Mladek > --- > drivers/tty/serial/kgdboc.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) Reviewed-by: Douglas Anderson