Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp13681pxb; Tue, 9 Mar 2021 14:19:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUYaiEB7HFvSta6puFFxUAUIZxLcrbdz1qdDwRkpxY1+wks0Qb95dQxA6wbojf4E3tkvHA X-Received: by 2002:a17:906:3b47:: with SMTP id h7mr223962ejf.377.1615328359246; Tue, 09 Mar 2021 14:19:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615328359; cv=none; d=google.com; s=arc-20160816; b=07GCaWa1Up9VSZRrkjn0eQSXIww6eGcE2rtfm6AT5MeKYXx8gjK2RIE6aFg2ytP+z5 xCK7kXfCuOeNHMIvTm4cXUIiZbfASkwzjVX0PSaUjkauXFgRulw0Do1zGqVmZ1Klm6tM 9eLpKEk1BbEYfc02PLcY/1WVpmzLciXvNFhyq0yg8dkbj+lHFBGaSo5dam86tylL2AMJ G5/hSDJQgpdehve+OboTj/Lu1lmfwIk7D97xbGiX+0Ccih9IygXzRlxxpTK2jHNJoecl DI90FxGLyNQljFM+aBhLnMQQPMRzl10UBf2qkYwpw4u4u6q2xUIpn4FGfG3n2zj1DztS 7LZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=JuDfN259I93/6orI1ZQnxhWXcirTjhN1gKGJRq2G7lk=; b=lqwhTPFkVLYh+uhHswO+RQ1nGd9Phn+iiT3gm5O6tu+HzHqYBLcGwxMtFqK506BS2G byuJNTwZe7KiPRVWLUqWQxD/MZpKyT+azlebKwc6oJhQdGqDOqDLP7/pK4FlWYdoPZ1P +NdMgahvy1IodZAQNSuNRZcaQq7FEkKCYEo2j7SKXEvdXDYyr+Bw5NFUlgCe9I1f2hpn EWzvKuGoPtiZcY2YsFUEYalJg/BsESpb0kYYPmvABNbiT4MWMBsJgbeqw+ie37FscaSC Sy5QFE2AOWg1/6LMu92GwWZi8V0YJAfFoptMeEe8dH/1j010KXbklHTOVCaHL3FUCv1b 2etw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZONvT4O3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 c15si6796318ejd.354.2021.03.09.14.18.49; Tue, 09 Mar 2021 14:19:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=ZONvT4O3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S231991AbhCIWSS (ORCPT + 99 others); Tue, 9 Mar 2021 17:18:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:48474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231960AbhCIWR4 (ORCPT ); Tue, 9 Mar 2021 17:17:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F254A650AC; Tue, 9 Mar 2021 22:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615328276; bh=3yN0EEuV6v6QjQlZgm324hPSjzM9yE63G1GoN8AzqVA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZONvT4O3X7mG9tB+BPAHTig514bejv4EKVE2Q6fH3X9Vq3jHnjI1cQTDx8g/t8jYk Kx4paUrFU4gTTVCd5iLK2IxqxGg4aXze1WrwOFhlUZiTJkEYQQo+sXAL7o1hUX5HjF WHSH5tN/f9zbIBZlKe4oKOBQzSu+9buwvczYz+BLgeZzgOsLNrLVEmGQoKXKsdWJ3V exn4MJiD/cMd6t5OuABDcThtyFgCrkns3twfZ+RjX4pnP3NWS1B+nN47QYbenBcBu9 wBR7x1XCXg+cG71jt5cPs29p2izdS1JUNveppKyN8nlHv4CfESxvdV9ojPkH3MiaAR FNDG6oUcz8Gdw== Date: Tue, 9 Mar 2021 16:17:53 -0600 From: Bjorn Helgaas To: Thomas Gleixner Cc: LKML , Frederic Weisbecker , Sebastian Andrzej Siewior , "Ahmed S. Darwish" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, Peter Zijlstra , Denis Kirjanov , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, ath9k-devel@qca.qualcomm.com, Kalle Valo , linux-wireless@vger.kernel.org, Chas Williams <3chas3@gmail.com>, linux-atm-general@lists.sourceforge.net, Stefan Richter , linux1394-devel@lists.sourceforge.net Subject: Re: [patch 12/14] PCI: hv: Use tasklet_disable_in_atomic() Message-ID: <20210309221753.GA1930915@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210309084242.516519290@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Mar 09, 2021 at 09:42:15AM +0100, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior > > The hv_compose_msi_msg() callback in irq_chip::irq_compose_msi_msg is > invoked via irq_chip_compose_msi_msg(), which itself is always invoked from > atomic contexts from the guts of the interrupt core code. > > There is no way to change this w/o rewriting the whole driver, so use > tasklet_disable_in_atomic() which allows to make tasklet_disable() > sleepable once the remaining atomic users are addressed. > > Signed-off-by: Sebastian Andrzej Siewior > Signed-off-by: Thomas Gleixner > Cc: "K. Y. Srinivasan" > Cc: Haiyang Zhang > Cc: Stephen Hemminger > Cc: Wei Liu > Cc: Lorenzo Pieralisi > Cc: Rob Herring > Cc: Bjorn Helgaas > Cc: linux-hyperv@vger.kernel.org > Cc: linux-pci@vger.kernel.org Acked-by: Bjorn Helgaas It'd be ideal if you could merge this as a group. Let me know if you want me to do anything else. > --- > drivers/pci/controller/pci-hyperv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/pci/controller/pci-hyperv.c > +++ b/drivers/pci/controller/pci-hyperv.c > @@ -1458,7 +1458,7 @@ static void hv_compose_msi_msg(struct ir > * Prevents hv_pci_onchannelcallback() from running concurrently > * in the tasklet. > */ > - tasklet_disable(&channel->callback_event); > + tasklet_disable_in_atomic(&channel->callback_event); > > /* > * Since this function is called with IRQ locks held, can't >