Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4588801ybz; Tue, 28 Apr 2020 14:17:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKp2bA4AA2Yaw6AlfgFxxKZcMmg5cIaW5tci3dT8Q9ORu1KBaENj7WaAqIePNA/TvQasBrt X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr25282132eds.160.1588108636278; Tue, 28 Apr 2020 14:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588108636; cv=none; d=google.com; s=arc-20160816; b=KIMYzxHB+7CLTNWpUgnU3dp9CeDbkdCEMD3pw+vPMDy/UErIl7erueT5gaAWYJIIdh fR6wwLvLjpwKXBGXTJ154u9VjCXEveqrL+FXzYB7tuyZ1gucFoWwpV1lnvCQUJJF6qJW XTBUfOVv6YoSt4kwG57BtaxLkzg76zIjh3tRmvU6pou/0A8e6pcNp4qFE+k+kuhPqWkK 9rJrdXWIuC5M4xvksPL/5j5EajM5MPIxLVWJi6rznLmNp1UVv1f97JMqZHrDyljtASbX 1XPP8yMfsOWfPHOJDRdbVj/swj6Ge1mN2z4Rg3sgqT3w3aQWRxDCZiNaK/L4xJ+TaRnv QEgw== 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=0OVNvnisfgkYu5LPJfO/kG/+xFAcsPKgHoSUZfW5y90=; b=RLPFG5e4RniA4TNKDUq3R7ug+X3Pnix3hoh+r3fNeLd7eT4HapLSlETac83RQcDdXT 8TkkTEGQ+Sjs9yuH7Dwui+KYiBMeZ5XuE7JkydVmwo8FG1xxsk92qr2cisYyASSInB8T oYRTHzv5c5HW5pJzN+rPP1Z7WKoThZ6Sr6/awI7+x9C3+CzKtSFpAZV5nhPSdVItexX2 gQTJkVOsdjESbgx48tdE/KYzmClgyQbPhxMQqVnIb631zL/Nqcbx+WjwK9m9X2u8MkXU gO/z8RZrrIEUpeS9GuAF7q+UfmA8QP/jSG82FJGIbojEPCSsHZIUQEgY4QQ1mIa4AXk6 TGAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="h/doTU1q"; 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 o16si2242089edr.91.2020.04.28.14.16.51; Tue, 28 Apr 2020 14:17:16 -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="h/doTU1q"; 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 S1726705AbgD1VOZ (ORCPT + 99 others); Tue, 28 Apr 2020 17:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726697AbgD1VOV (ORCPT ); Tue, 28 Apr 2020 17:14:21 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F97FC03C1AD for ; Tue, 28 Apr 2020 14:14:21 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id h11so8998920plr.11 for ; Tue, 28 Apr 2020 14:14:21 -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=0OVNvnisfgkYu5LPJfO/kG/+xFAcsPKgHoSUZfW5y90=; b=h/doTU1qG1diDauaG4awPo0siVlKxs5d3hJ4lnA8tM0J401L3v3bBQmJoeyedEqXwb 51qxQobOPjOp0YRYa5DgkvyAUSbSbtN8u8KC6zK6J0bnGAluamUTpb+thPIv8ZnZ6hHp Agc3yHDWqkGWoApmfRi9iFjYsxh8LUGVylncM= 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=0OVNvnisfgkYu5LPJfO/kG/+xFAcsPKgHoSUZfW5y90=; b=O5pRZdQXsbs/q06OCIYWtqnm7qUTiCgMwhoF96uX94uSmvHSUY0SG+ZzaCTxQn0DnO B/k3X6kAEl2hSmB3ipZ4QRTWdaKQt8pAW6cDEfqWA2mJSq3zZFyso1vDvJUpBdtgxL+o HsVJNW1hXPjg663CVc3S7tqau6hY69ziV/GjiqBspQkTelRT5Lp/5+nzEOQiOn18qvla asbS/uwnXJhhIybcKp5rKCHLPTluVfKcGRQF86mVgbnjX+/zgUZ447N3L5mWJq8SaxHe vjemF9r7P1n8wLDzefjMIK+gRCuz38mDAksvZfbQ+aREGgl4BgZYyE5df5CWtUS/29Rl eaxg== X-Gm-Message-State: AGi0PuaMRox4oSYkDKibp8X3ghogjcPQ3t7iZ37jcaYgnC+oX47ET8E2 fXac4hHeeL03fan1oQz0lf+myQ== X-Received: by 2002:a17:902:bd09:: with SMTP id p9mr18601373pls.214.1588108460637; Tue, 28 Apr 2020 14:14:20 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id 18sm2988202pjf.30.2020.04.28.14.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 14:14:20 -0700 (PDT) From: Douglas Anderson To: jason.wessel@windriver.com, daniel.thompson@linaro.org, gregkh@linuxfoundation.org Cc: agross@kernel.org, kgdb-bugreport@lists.sourceforge.net, catalin.marinas@arm.com, linux-serial@vger.kernel.org, sumit.garg@linaro.org, corbet@lwn.net, mingo@redhat.com, will@kernel.org, hpa@zytor.com, tglx@linutronix.de, frowand.list@gmail.com, bp@alien8.de, bjorn.andersson@linaro.org, jslaby@suse.com, Douglas Anderson , linux-kernel@vger.kernel.org Subject: [PATCH v3 02/11] Revert "kgdboc: disable the console lock when in kgdb" Date: Tue, 28 Apr 2020 14:13:42 -0700 Message-Id: <20200428141218.v3.2.I02258eee1497e55bcbe8dc477de90369c7c7c2c5@changeid> X-Mailer: git-send-email 2.26.2.303.gf8c07b1a785-goog In-Reply-To: <20200428211351.85055-1-dianders@chromium.org> References: <20200428211351.85055-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 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.303.gf8c07b1a785-goog