Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1033564ybj; Thu, 7 May 2020 13:12:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLKCjeXePZt2tySR0Tx3NAUpm7lvWjBxbW/w9bszvtKsFTvhEyaCnAYzLWgSnei8XoDv1Gb X-Received: by 2002:a50:fa87:: with SMTP id w7mr14269746edr.0.1588882375612; Thu, 07 May 2020 13:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588882375; cv=none; d=google.com; s=arc-20160816; b=Q7WCppuC5zZFSpSsl9tTCx8dTQso6Sfxf2u79UUWe8xtTQWFS7IQN9q76PCtdk9tQj MMu2gK3WIXWcOtZAglTgYgK3VVriYNtiNIUc5MUjcntuaxaB3brXft/+xicRU12nQQWG 4ZgVOhkgIl6mlrZP5JuTz9VwaerGwsR0Ms+3KEslh+IAPjuMyQZbCkdIsBFouOG2RZ2B bbmdfWuiryAdfKwa4/ohqEGRO9CiHfhufPBtjZZV9KO2mmGjRVu/bSiqdzylJa+rArQO BeMichCxT/tDYVSe8Fz6HqHkpW/zHLRMzM7/j72IRdpqNKvVH6SAfHUxCPZvd+qhiXni EBhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c/DsRm4g6gIbDNrt7b5XJT8F2ZdnzG78OB1C4FcIZRg=; b=M1+QixqEqAf+bgHwvKzpIPq3V3Bteoe00H54CoJfBl1Np0It8vBPCb5xu5PQeagDBp o9fLaJ1b0Q87BbCIr/z/aX8AGuZSCXYBySV2PzjCH9xwq3gM8rM7UHUFiWLy+FkxIZ16 d/eL+sEsddzmCXCuwXHWb+ABd/wRpjM5tQnefSULELjDAoqMNUAgY73zyrsugYcbf/rP 3c92P9vGHjbWxh+bEtuEuJTLZD0vLSOVFmeGX/HeQWCFZHU1QDURqJZo/HegQ1Ms64xH wEzJook+IyELGv8QrxkoNzTDbyGCtnsgyHEmN6THsGi/uRXeo+Jhwz20UUxMdcjwNJJG 41Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Wji61SIe; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si3846809edy.407.2020.05.07.13.12.30; Thu, 07 May 2020 13:12:55 -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=@chromium.org header.s=google header.b=Wji61SIe; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbgEGUJF (ORCPT + 99 others); Thu, 7 May 2020 16:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728378AbgEGUJD (ORCPT ); Thu, 7 May 2020 16:09:03 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1BBFC05BD09 for ; Thu, 7 May 2020 13:09:02 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id w65so3529029pfc.12 for ; Thu, 07 May 2020 13:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c/DsRm4g6gIbDNrt7b5XJT8F2ZdnzG78OB1C4FcIZRg=; b=Wji61SIerY4A7CIjkXjeQbrgHiPO+IPz799kwT2t+CDnNp3fyN1ul6dEyGHysTzfpC JZo5ah0CiyK9u/ZGlwjIyCE/GpmxmmZIYPu0KXJO2nZfLuj433mngzH/hie8b0wDBddz NnCipZ1Khy+kmgpi29vWHoHozWaVMNYziA4dg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c/DsRm4g6gIbDNrt7b5XJT8F2ZdnzG78OB1C4FcIZRg=; b=a6FxLhnXaiY3EvDgn7H/vnXEjyRsKPJRL8dbuhSYwLzH+cBpmT2qs3rh+PjqU04XjN wipJoDBbM1eEPGlR4wxiH5gDDb+xvlHNJamCCYz1wnMdSFbP8BCTBT8RkBnN7zEdiBji IRR2V3JfOKKnqdVIBgfX2G0LBpi2xlFYoREgnswphvYMGLS2FNZyyuH/Gh3cNx0tciX5 hpXyM5I7Y1VpDx6CzLyUe/Tip3ICa7wqWP80pOCIO4qD84TX659wm8jTslE1gpfoKChJ Q+pWbqxURtHRWuAqvoKy0KZpZiRh0eitVT5hVy7mY3t87s9fg9HbAFfSYvCKNqWAbGY9 OGqQ== X-Gm-Message-State: AGi0Pub44eXp3DrDQolXwLFpsKGLFIqLbguylL+6Z6cTBr4fUQWzyky1 FZvfFgFzHJzN8LRxgE72CF2AOQ== X-Received: by 2002:a63:200b:: with SMTP id g11mr1896922pgg.22.1588882142461; Thu, 07 May 2020 13:09:02 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id d203sm5547601pfd.79.2020.05.07.13.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 13:09:01 -0700 (PDT) From: Douglas Anderson To: jason.wessel@windriver.com, daniel.thompson@linaro.org, gregkh@linuxfoundation.org Cc: corbet@lwn.net, frowand.list@gmail.com, bjorn.andersson@linaro.org, linux-serial@vger.kernel.org, mingo@redhat.com, hpa@zytor.com, jslaby@suse.com, kgdb-bugreport@lists.sourceforge.net, sumit.garg@linaro.org, will@kernel.org, tglx@linutronix.de, agross@kernel.org, catalin.marinas@arm.com, bp@alien8.de, Douglas Anderson , linux-kernel@vger.kernel.org Subject: [PATCH v4 02/12] Revert "kgdboc: disable the console lock when in kgdb" Date: Thu, 7 May 2020 13:08:40 -0700 Message-Id: <20200507130644.v4.2.I02258eee1497e55bcbe8dc477de90369c7c7c2c5@changeid> X-Mailer: git-send-email 2.26.2.645.ge9eca65c58-goog In-Reply-To: <20200507200850.60646-1-dianders@chromium.org> References: <20200507200850.60646-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 81eaadcae81b4c1bf01649a3053d1f54e2d81cf1. Commit 81eaadcae81b ("kgdboc: disable the console lock when in kgdb") is no longer needed now that we have the patch ("kgdb: Disable WARN_CONSOLE_UNLOCKED for all kgdb"). Revert it. Signed-off-by: Douglas Anderson Reviewed-by: Greg Kroah-Hartman Reviewed-by: Daniel Thompson --- Changes in v4: None Changes in v3: None Changes in v2: - ("Revert "kgdboc: disable the console lock when in kgdb"") new for v2. drivers/tty/serial/kgdboc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/serial/kgdboc.c b/drivers/tty/serial/kgdboc.c index c9f94fa82be4..8a1a4d1b6768 100644 --- a/drivers/tty/serial/kgdboc.c +++ b/drivers/tty/serial/kgdboc.c @@ -275,14 +275,10 @@ static void kgdboc_pre_exp_handler(void) /* Increment the module count when the debugger is active */ if (!kgdb_connected) try_module_get(THIS_MODULE); - - atomic_inc(&ignore_console_lock_warning); } static void kgdboc_post_exp_handler(void) { - atomic_dec(&ignore_console_lock_warning); - /* decrement the module count when the debugger detaches */ if (!kgdb_connected) module_put(THIS_MODULE); -- 2.26.2.645.ge9eca65c58-goog