Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3843289pxk; Tue, 29 Sep 2020 07:38:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTke1ISm3V+qsUQuDcwOzR0orstQSJGk++vKps4Dq07cFA8czqNDHIvTS0rpCR0HNcL4L0 X-Received: by 2002:aa7:dd01:: with SMTP id i1mr3669804edv.121.1601390284450; Tue, 29 Sep 2020 07:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601390284; cv=none; d=google.com; s=arc-20160816; b=yKpNBaL3k0dynjm+JTv/BZq1VM2YDnuGQ9rXqeNMnFq7HPqUF2Je8IWa+8484b8h3t 5i2fa4F8eMmn+S7DF7C7aPCDjFeWk8OXLcD7n8/qc1hl0z6S9AaxvYiT74dUlypKaUCI /XHpkqMFQ7Z/f2YBZsdXfCVMWIl7HvN8I08BWtJv7NSnWdS8EmO365allbcWfloXTvWs 1GUs31YBWhFDzmb4+gtvAcsgUVEm7sG5P+Z0MBuVxuVNSxV4KvQy+gvCKdkttSKdK6Rk T7wju5AB4f0x2kPJFSgRv69Fg3Mxsz3mqxxUrR0cLdLDCEmkQYQcc2zgDewSqXEqwx9M cneQ== 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 :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=7VmCiL2ZmrGBEC6BMl9JAzfcplFXUuQxSEoukFP38Qc=; b=tQZhgyTJz9skLJG0UQxwi5vcmx70AM1FSA2cwZdj7M2aviRWYpATIFAT9f9jDuafwP nVX3M80x0Qhh74aF4y4YofK0T2BngfR5eE9Z5yjfZ5fB+iRkjcNnDUDiIA941DjTYhRD WnWoVktK5cZPu9QJsnj5pHb7oEMFMz2q5GEIOdJS4Ix6+GQz7t0h6Vtzd7+4RQY93VNr 6DcotfdXBh8Y2RDIaBl2hHDI6fkCL4i7I/cVCXkF78TP2BVB82qHRCCM3LqUnEQdaPAc cgxSRwgsHys5aKoFE8J9WS1apBxftLjvl7DBAIPFvk2kxhcRAVzIzpbIk1XIPNblU500 8X9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=V1+jfdup; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=sPt4IoTc; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si2869884ejk.113.2020.09.29.07.37.30; Tue, 29 Sep 2020 07:38:04 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=V1+jfdup; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=sPt4IoTc; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729872AbgI2OhH (ORCPT + 99 others); Tue, 29 Sep 2020 10:37:07 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:46452 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728630AbgI2OhH (ORCPT ); Tue, 29 Sep 2020 10:37:07 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1601390224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7VmCiL2ZmrGBEC6BMl9JAzfcplFXUuQxSEoukFP38Qc=; b=V1+jfdupgUDguwQLoSfM1UDKyK97umPBk3RCJPtrXvo3HjkrAv7oZ8d769kr1UDVOiqeTZ dYLZ91gc/sIaO50hcs95TdgAz48RhfBSdsMS4DBcFHFsnovSq6VpdWIndCw/TDoShwfw6K +9gek94Fbm54gtYRDPDw8mmMw1zu7wsXy4XgCJqs+Ou4lV81QykEgsNo9DjLsy3AKB/AQT G576m9HeX1S7jQnyrTObW1HKy1c9vZ/qj50V8IIaFz92XDLpVe1/eK2AHh590q7RBBj8DC CNoJkwrvYs+wq1wIIZrzEBqJCA9sxTEj2C2ebwz12LDtKQOxv8zXpvTIG+C0Uw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1601390224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7VmCiL2ZmrGBEC6BMl9JAzfcplFXUuQxSEoukFP38Qc=; b=sPt4IoTcBHRSkKQG9REMY6x9b+3JCLHw6ozsiGzdslM4l4/myrfh7jYnJBRfn53aNiiK7S jsmrp6TrTiHQFoDA== To: Shannon Nelson , LKML Cc: Peter Zijlstra , Linus Torvalds , Paul McKenney , Matthew Wilcox , Sebastian Andrzej Siewior , Pensando Drivers , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Christian Benvenuti , Govindarajulu Varadarajan <_govind@gmx.com>, Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, Luc Van Oostenryck , Jay Cliburn , Chris Snook , Vishal Kulkarni , Jeff Kirsher , intel-wired-lan@lists.osuosl.org, Andrew Lunn , Heiner Kallweit , Russell King , Thomas Bogendoerfer , Solarflare linux maintainers , Edward Cree , Martin Habets , Jon Mason , Daniel Drake , Ulrich Kunitz , Kalle Valo , linux-wireless@vger.kernel.org, linux-usb@vger.kernel.org, Greg Kroah-Hartman , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, Stanislav Yakovlev , Stanislaw Gruszka , Johannes Berg , Emmanuel Grumbach , Luca Coelho , Intel Linux Wireless , Jouni Malinen , Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , libertas-dev@lists.infradead.org, Pascal Terjan , Ping-Ke Shih Subject: Re: [patch 11/35] net: ionic: Replace in_interrupt() usage. In-Reply-To: <1d0950f8-cab4-9ef2-6cf7-73b71b750a8d@pensando.io> References: <20200927194846.045411263@linutronix.de> <20200927194920.918550822@linutronix.de> <5e4c3201-9d90-65b1-5c13-e2381445be1d@pensando.io> <1d0950f8-cab4-9ef2-6cf7-73b71b750a8d@pensando.io> Date: Tue, 29 Sep 2020 16:37:04 +0200 Message-ID: <87h7rgk5tb.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Sep 28 2020 at 12:51, Shannon Nelson wrote: > On 9/28/20 10:24 AM, Shannon Nelson wrote: >>> ionic_lif_addr() can be called from: >>> >>> =C2=A0 1) ->ndo_set_rx_mode() which is under netif_addr_lock_bh()) so i= t=20 >>> must not >>> =C2=A0=C2=A0=C2=A0=C2=A0 sleep. >>> >>> =C2=A0 2) Init and setup functions which are in fully preemptible task= =20 >>> context. >>> >>> _ionic_lif_rx_mode() has only one call path with BH disabled. > > Now that I've had my coffee, let's look at this again - there are=20 > multiple paths that get us to _ionic_lif_rx_mode(): > > .ndo_set_rx_mode > =C2=A0 ionic_set_rx_mode, > =C2=A0=C2=A0=C2=A0 _ionic_lif_rx_mode > > { ionic_open, ionic_lif_handle_fw_up, ionic_start_queues_reconfig } > =C2=A0=C2=A0=C2=A0 ionic_txrx_init > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ionic_set_rx_mode > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 _ionic_lif_rx_mode Hrm. Let me stare at it again...