Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9183107pxu; Mon, 28 Dec 2020 08:39:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzw0yvgAIsPlIFJBH7tpj0KXvVuAvLetRn9lS1C1EdeGcIUeoF/toMa9EnNYn2vbdVZ3H6p X-Received: by 2002:a17:906:59a:: with SMTP id 26mr41636143ejn.309.1609173562150; Mon, 28 Dec 2020 08:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173562; cv=none; d=google.com; s=arc-20160816; b=zsjukL/eo8GJQnP5o7a3YgXNk5EbpDnDSh2ahRse1xxsRUZMmzsIM6goJCPdVBFT7Y rKzZHZx24so1ZSWhOOiglmctEegZntacOhSiCpodXnyfX0FXsRqJBqsVHM8CthWsmNJD zBr8ADcwwO4Eib7MWU9G6Kpp9YYq6PdMNNkW3pemaiDY+s/3Dn/7/t7xgiTtgN3taf/e F04Afj2SpDnTlTS8Ani/4UeS+dxWZUIVvB4rIRVS3G3oLN9oFLEfyml0iMSEBLRwI8QM y89R3svad57fPu83tVqfmoJms8RHiLzZj9qdSQ7kKHGWIec43ywiMFkhRu8kXkSrN9gX 5n0A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SJgjCdPbWgR0Dnjox1ZQzTyLn3kKfE3HvM2cWZeBvH8=; b=xTww1y6O0VfxZ5WDYU+8H+Jd4uCTPQQCD0zVSFizYyRocbS+lNT/LFRTRb2MyW2mSq XaXwMC313lF4ppF/hu4+do2nBsg4Ak6OYd6bvQ4rooj2j9kLyT3y7FKxQYkBVYPa48tj x78tdb8VNGONsNXVV2bGnVzhmQ+nOz92YNdaic1a6iOpSi+0DhwGb8nvchNIcdxtfVk1 3/eOvPQLYr3TeIm/qyo8GkShSWgtQFjHn3gdTP9Rv9DbMpFewMrc+PIFdNANtgDZD1Al oJGS18PXOHoaQBbbMD3UDYURVtG74aZH/hlPn6YeV5QghHK2zumLYnHIWRir+6fM7xVb yd6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YQD0qbxJ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si19276014edz.214.2020.12.28.08.38.58; Mon, 28 Dec 2020 08:39:22 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YQD0qbxJ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729882AbgL1NBw (ORCPT + 99 others); Mon, 28 Dec 2020 08:01:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:56678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729464AbgL1NAZ (ORCPT ); Mon, 28 Dec 2020 08:00:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E79E22B2A; Mon, 28 Dec 2020 12:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160385; bh=SGlegLTLtGNir0urkvQvD8y2E5Ey3+y4+dIcD55sGMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YQD0qbxJzHxfUP9JB4C5O/U8ZJNvzTDc7VwupLmtckU0aN54z49QB1LfXp1YBhE7Z KiUX/XRFp4iJYxyvAvTJU4rC+dpv5N9WONaYc3CHo26sz3ErHT3OPA82U1P4mlBlld Ye5jAb6npwCQAX4skz0ndW/1FJudKUonHJakbu6k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Sebastian Andrzej Siewior , Mike Snitzer , Sasha Levin Subject: [PATCH 4.9 034/175] dm table: Remove BUG_ON(in_interrupt()) Date: Mon, 28 Dec 2020 13:48:07 +0100 Message-Id: <20201228124854.909417576@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 2d3ff028f50c9..62e3dc19b6099 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1250,12 +1250,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