Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9174793pxu; Mon, 28 Dec 2020 08:26:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5s4w3IPj14/jMNvTQkCl8MXKWyNS1gBqlD0G2URnnunKPaEAxGL1S5Q75jIdGowfBo5fo X-Received: by 2002:a50:e80c:: with SMTP id e12mr41671700edn.288.1609172769765; Mon, 28 Dec 2020 08:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172769; cv=none; d=google.com; s=arc-20160816; b=B2HWc0ptMRwYJy4fkxuoMNorkgTToVYKdAkefOk34eEzv3L00/Kuf2O93aR/DHz8K2 44FwLJ89CQUsP9Q6D3rjL4fRZDPLkggWOUVu37IfZC8O8S2sUuxQRQo0qBTX8QTmSASA u7Wxfg0qIHGkQbq7NNuk150xIoi9WDM5SPSNaB2FIYQlBHgBDgpL0Q6cOtPV/do0Hqjl tPiVgFUadYD1MGgUNdS6JvCWjPS4ZGSFix6QpaKeFTVOl0Wzc4qyXdGnIolxd0Zy7iRN V2vWZO11feC2/5LzpMGMQwbWzUCaMLzM5zGzOpxJI6KKzzJIWWAkQS6ykeQIr9zHXmeF r7dw== 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=Ck939F+vivoCsjMaua3ZPWh7mxVOahax0TYWRUZpv9w=; b=FIbQvCfBu332OdFX07bkj+x0hGgpzdItVDEa+Z2xAZjxXghLrAtvMUawQy6o0TCr39 7KQJwyXJK450zFA1FnUWaeev/qDNdw/ZqeRPhVPAya+0Qhlog82yPMUw3hsWSl/ps96z hUXwjL8hKHv3EC6Kd4YDZceSSrFv9LW78kmiem2oQ+hUqDSPRvInBHGg8bB327icIhwz YWXR1bd+X8FsU19L+/MMU3ziabriM3vmRhhqx4+p51k41pSVBqUBt86yMdqL00oDtAc+ 7hjJB83TzDRMDGdXtuvC7s3zJKAPOr3yB9XM5E7oYx5F5e/eRjemLfDks07wRSX262af msaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DF4rKMx2; 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 c4si16989050ejk.182.2020.12.28.08.25.47; Mon, 28 Dec 2020 08:26:09 -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=DF4rKMx2; 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 S1731862AbgL1NLu (ORCPT + 99 others); Mon, 28 Dec 2020 08:11:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:39148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731617AbgL1NLO (ORCPT ); Mon, 28 Dec 2020 08:11:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F11B520728; Mon, 28 Dec 2020 13:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161033; bh=nMf3gnOx6eJxxED5MzzNT844IXb6sTEqjQRbZaVsyUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DF4rKMx2gs7Eq55bVKYcGiUg/1gGgRNTrozKBjnRaRvaq9DCT59yzKgFMQ6aFH9pA zzb56glHHe79PNyOrk7cKE7dt5QuOl2cFyI6Dhw+6MLG/yDy4bEpTzpg/hbFJ9XJhA 5yNvrYwqjgAE3mDpRCUpszoql/jZ5xI+rWMw7gh4= 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.14 047/242] dm table: Remove BUG_ON(in_interrupt()) Date: Mon, 28 Dec 2020 13:47:32 +0100 Message-Id: <20201228124906.996140747@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 777343cff5f1e..78d4e7347e2f3 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1295,12 +1295,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