Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8145658ybn; Tue, 1 Oct 2019 04:02:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHLqUY9cGHyTSSwysUDCGeIBP367VshcABNjcRgCrYDG5yKAc8WNMIPRzqhOizEjflEf8X X-Received: by 2002:a17:906:5284:: with SMTP id c4mr17726343ejm.39.1569927734274; Tue, 01 Oct 2019 04:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569927734; cv=none; d=google.com; s=arc-20160816; b=T1hQ24vMMKsB/ckUPM7h15K9gXsj+K8iPh0RaVlqa7e7f3kWWU68BryLT8q7U1pBOp ibaDLdRglIkF5LCXZjZ1i+rTeJjEACGgP+DBroUM40qF65BJawZ5vDd3p/EFkNfxEn0g ZAogvu/MhbZ4gn7TFJo6W42uE2YPVZtrOpYONWmkwcfoIAzAf36g7NCPmo+mS5tbk4vA T0FhhDFm3ip5nB6gWo2RWwrFSH9JYwDxH6EXk9x9tzU1w0EgIVu3gJgit2PUOXIg9Ebn bsrvQzie9qYoD6sTocLV+Tvh1Du4+vKjGJzPGyaLkNMDYGKwenDoGjLRnZnFQ/OdcPY5 mg0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=cxWS2Lddnj4NLNFPzPiS4L3aiAp+suFDRU0fuM0L0NQ=; b=0aas0/LePb9v/BosDTbdLS7ihsN+/fCI/Yp4fuSwxlEJ6i2ywqR3h0YDvp/vVpe7Zq BCGjclh/8/b/3tYgMuyFZfTRtpn5p5ii3CcPSdmAqoUgovcQm/6MVZplmd2+XHRv5NkK 44Q+Fjg+KYqk2zcPA9OXe+2OcfGpxVctp9hZNQ0oRqRu6QvwPta5QymBmAQkBcSnL9JK aG5qfoA/1Uw72f0lYuTcjD9WTeE4SAR+FZLDkX1abmpLEFaECx+srE8CLPFOnMsO4XFS IoNL5iBuDSLj5i5uxFuz8uVQESktgkVayDcx5u25vkbdGac2QEJJqzSlsHHlYch9KBVS grQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M83NJw1S; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id m17si8894735eja.318.2019.10.01.04.01.49; Tue, 01 Oct 2019 04:02:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M83NJw1S; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1726689AbfJALAc (ORCPT + 99 others); Tue, 1 Oct 2019 07:00:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:58122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbfJALAc (ORCPT ); Tue, 1 Oct 2019 07:00:32 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4CED02133F; Tue, 1 Oct 2019 11:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569927631; bh=/rD1NXp0yBqq0N4gwG67dO1KzQlRYlyRZCVj4yCgDH4=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=M83NJw1SKsydoUIyRFVbj/3mFHTsyIiGmZAkhwZm8ELaFaxmYD8nnaWyuSWF/Uwgo KeW0v0en9aY6sQao7/EFl9z4WlZgplfoNCnR7qOsxfSWkJUkhIK23AiNpW6Qfikrsi F1SzWjdN82aBg01HXB4jd0HPqOrDoBtYak0SAgnk= Date: Tue, 1 Oct 2019 12:56:59 +0200 (CEST) From: Jiri Kosina To: =?ISO-8859-15?Q?Toke_H=F8iland-J=F8rgensen?= cc: Johannes Berg , linux-wireless@vger.kernel.org, Johannes Berg , Aaron Hill , Lukas Redlinger , Oleksii Shevchuk Subject: Re: [PATCH] mac80211: keep BHs disabled while calling drv_tx_wake_queue() In-Reply-To: <87blv0visz.fsf@toke.dk> Message-ID: References: <1569924485-I3e8838c5ecad878e59d4a94eb069a90f6641461a@changeid> <87blv0visz.fsf@toke.dk> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 1 Oct 2019, Toke H?iland-J?rgensen wrote: > > - spin_unlock_bh(&fq->lock); > > + spin_unlock(&fq->lock); > > drv_wake_tx_queue(local, txqi); > > - spin_lock_bh(&fq->lock); > > + spin_lock(&fq->lock); > > Okay, so this will mean that the drv_wake_tx_queue() entry point will be > called with bhs disabled. But there are lots of uses of > spin_{,un}lock_bh() in tx.c: I am fine with whatever fix for this you guys settle on :) Just for the record, I proposed this back then: http://lore.kernel.org/r/nycvar.YFH.7.76.1904151300160.9803@cbobk.fhfr.pm maybe it could be resurected, as I believe it'd fix this one as well? But again, I have absolutely no preference either way, only that it'd be nice to have this fixed :) Thanks! -- Jiri Kosina SUSE Labs