Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8141016ybn; Tue, 1 Oct 2019 03:57:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuo4iCh0Ka/Ose22jUEnQ9XYExQzbzFIPI5nazVq9d7pkZZtpBGwf4OpMlrfGeuKHC5w/L X-Received: by 2002:a17:906:3298:: with SMTP id 24mr23370529ejw.136.1569927477341; Tue, 01 Oct 2019 03:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569927477; cv=none; d=google.com; s=arc-20160816; b=vrFgWqjwhjThedMse7EVvMV0SQ1fPmD0hVmQzqNdKPNVzJIuApxxVNgaFTVULI/Pvk nQNL+XWNJ/Dgm8f3wby6utQkOBUC6OckbW3f6JQW+6YLjJiJJWVMPdhp3/Bl1nC9ogAh 0yJ0pczpSIQjeRR7OfDELECLZCmgWtE7ifjkRlB4QmNVqrn+NdAK2/7Vv4ymT3LDzgGA taZwTsDBjpPvYfmWV/A+GD4dqYhM+zT8ob9GJAwUsKihhAR15LTLO7/A4RySmBvqDeKg veDqF7ZVH6qmjyp8p3T/nbIbdoTrAHcwP1qO/PnAbpb2M+Z6M3VjSSMtCUcpCmsxQP/s 6+VQ== 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:in-reply-to:date:cc:to:from:subject :message-id; bh=wIBRiuEq9izCRfscEHtJx8hGONYZ0TYxZyUcM486K0E=; b=q+/CMJeHyIlayaeIKTA9t4Mdp5Rchde2Dg5FhZA0/8Zk+Qop2+HLhzmfwTFfdUxJmr HLTktBCQlZJk12HOrRqX9mzNlPOkLKGDm1REVJQpcMhVzK3svfOZCJFHAAmdCkwNMKNa pGleY8U5jjkEWToMo3YmWDkaPP+hnQSfuJV2ZwlXxfQQTqaVfXdoAd5noDiXxuqYBSCT 4KDgoudsWDJOGpA/pNSKf9fPYWhEkU2q/vaOQ97IJ28jU1CcFsz2WjYz6+f9IpGUrz2E qKOqWq8VR6RM2XbZwQB2enr0bMMFaUJs7QIK69Y25vMHNgiUAD+v0C8MV22AGB3rq7yW WeTw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si8640262eju.333.2019.10.01.03.57.32; Tue, 01 Oct 2019 03:57:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731187AbfJAK4a (ORCPT + 99 others); Tue, 1 Oct 2019 06:56:30 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:59666 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbfJAK4a (ORCPT ); Tue, 1 Oct 2019 06:56:30 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.2) (envelope-from ) id 1iFFpU-0005wU-Oj; Tue, 01 Oct 2019 12:56:28 +0200 Message-ID: Subject: Re: [PATCH] mac80211: keep BHs disabled while calling drv_tx_wake_queue() From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , linux-wireless@vger.kernel.org Cc: Jiri Kosina , Aaron Hill , Lukas Redlinger , Oleksii Shevchuk Date: Tue, 01 Oct 2019 12:56:27 +0200 In-Reply-To: <87blv0visz.fsf@toke.dk> References: <1569924485-I3e8838c5ecad878e59d4a94eb069a90f6641461a@changeid> <87blv0visz.fsf@toke.dk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 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, 2019-10-01 at 12:53 +0200, 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. Right. > But there are lots of uses of > spin_{,un}lock_bh() in tx.c: [snip] > so won't that mean that the driver still gets bhs re-enabled after (for > instance) the first call to ieee80211_tx_dequeue()? No, local_bh_disable()/local_bh_enable() is re-entrant and nests fine. johannes