Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1938133pxu; Sun, 13 Dec 2020 08:10:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdscWKRsOaTqgTaimfCCo+TrYEB8DeSyub7TIk9sFL35xLmt1AfJfJtHR4ez0/iPFtawv8 X-Received: by 2002:a05:6402:13d1:: with SMTP id a17mr20817207edx.202.1607875812277; Sun, 13 Dec 2020 08:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607875812; cv=none; d=google.com; s=arc-20160816; b=dYyGFUyL/P6318Z9eI5GaMIXA1hVRhkM2+CmTYoHZyBLKotEBX6vT6Hsp2WwNRVhbr 6zFQlrWbs1k1B771CjpyHzZmKxN5IVvqksFHPQlz8is3TFCVNKmwVCOFqvrP26WCiwVK wP99lJRB52f6q9PncITpOgZtCXsRtZX2Am8gy3m19nAkHu+5HF+Ury89D5FPBpjRKOBU ZS5dKLuSR6ugvuA+Id3yKhzBE1Esi3Pxjych/F3eA2zWoee0C857/r4tsCUjxv5T+Fdq OqgjTVYsulKRZ+wes9Fof8Kglf8fdJvsXqchl5vlKDPtY5keO4UGudu+5UPLS9lHJM0M mnvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kHwDDGBeMf+op06EWhdp5BE0JS1s/pS0ZRtVHPI1PSk=; b=njOIIqRtXde2niQV8IRrG6YOPowXLPZa1sgv4t9mF9fvbD/+su+hqWnbGDoV7byB33 s0lcSYucArZmPzzmHw7BEZJLGczpzXB6IQZgxAzd/MypssyjKA1FKnW8JZk+r04/cyf/ n6TIrjcL3nnaedX/WNrPGrhDaa/6i2kh9J/+kDTzO81OGvJZsmhyXA1aUZT8gc0sznXQ mEtZeUkTpC77jAjQSGaJLpmwwrS4iUHGq479Q5bb0lcGkGWsqEYDjzVYQR+jbVkYJxb7 HqSxdNwhftYa0kDye8MhgjZ/PuKbZwmSYps4NHyPLM+nFHnuhWRTLYGrP0/xjJIOz7xu HKLA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si8656298edq.506.2020.12.13.08.09.49; Sun, 13 Dec 2020 08:10:12 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407561AbgLLQeA (ORCPT + 99 others); Sat, 12 Dec 2020 11:34:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:57724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439404AbgLLQJ4 (ORCPT ); Sat, 12 Dec 2020 11:09:56 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Thomas Gleixner , Sebastian Andrzej Siewior , Mike Snitzer , Sasha Levin , dm-devel@redhat.com, linux-raid@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 17/23] dm table: Remove BUG_ON(in_interrupt()) Date: Sat, 12 Dec 2020 11:07:58 -0500 Message-Id: <20201212160804.2334982-17-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201212160804.2334982-1-sashal@kernel.org> References: <20201212160804.2334982-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interrupt() is deprecated and only covering parts of the wrong contexts. The sanity check for the context is covered by CONFIG_DEBUG_ATOMIC_SLEEP and other debug facilities already. Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Mike Snitzer Signed-off-by: Sasha Levin --- drivers/md/dm-table.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 229f461e7def3..36f2556c1d4f1 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1298,12 +1298,6 @@ void dm_table_event_callback(struct dm_table *t, void dm_table_event(struct dm_table *t) { - /* - * You can no longer call dm_table_event() from interrupt - * context, use a bottom half instead. - */ - BUG_ON(in_interrupt()); - mutex_lock(&_event_lock); if (t->event_fn) t->event_fn(t->event_context); -- 2.27.0