Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79D7AC61DA4 for ; Wed, 15 Mar 2023 16:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231748AbjCOQr5 (ORCPT ); Wed, 15 Mar 2023 12:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232011AbjCOQrv (ORCPT ); Wed, 15 Mar 2023 12:47:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B28F737F28; Wed, 15 Mar 2023 09:47:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B2F68B81E38; Wed, 15 Mar 2023 16:47:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20226C433EF; Wed, 15 Mar 2023 16:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678898840; bh=Ar5hmSEYmhxrLosdQWXGP9BQyDb9mRGH/lEBZOlc9gM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=abqkue1D7BhzlKzKB4tRRrpdzta3fzCNxp2lV+hhobmsZrWaBAb1mKy70EE9bgR+d Rkdubyw1LyUYn9KQ5NAJzQOJFyYPhmoSdHrAo1hize7iQWjTvl1MQipkAVv+4ylkYd P+TlyqhZ1vruiQjG8Rlg08ywNvT9yY33Z3blTBzZKE138aU1dnH4Fb0vBkefXbb2HD /csBRupoU0ipP+zHC93VOit3L0vfkLE9Gn3KNr3c0p1zNus4isRb6kpy9gY34XC6mV kLNpJSQ2J5UtNGrJm0cfgVM1+0KOw0ImZsv0LpGq4aFddqvnnM1kfihpRKLBYL2yIP 5m8No7WXoB0bw== From: Kalle Valo To: Alexander Wetzel Cc: johannes@sipsolutions.net, nbd@nbd.name, linux-wireless@vger.kernel.org, Thomas Mann , stable@vger.kernel.org Subject: Re: [PATCH] wifi: mac80211: Serialize ieee80211_handle_wake_tx_queue() References: <20230314211122.111688-1-alexander@wetzel-home.de> Date: Wed, 15 Mar 2023 18:47:15 +0200 In-Reply-To: <20230314211122.111688-1-alexander@wetzel-home.de> (Alexander Wetzel's message of "Tue, 14 Mar 2023 22:11:22 +0100") Message-ID: <87fsa6vu5o.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Alexander Wetzel writes: > ieee80211_handle_wake_tx_queue must not run concurrent multiple times. > It calls ieee80211_txq_schedule_start() and the drivers migrated to iTXQ > do not expect overlapping drv_tx() calls. > > This fixes 'c850e31f79f0 ("wifi: mac80211: add internal handler for > wake_tx_queue")', which introduced ieee80211_handle_wake_tx_queue. > Drivers started to use it with 'a790cc3a4fad ("wifi: mac80211: add > wake_tx_queue callback to drivers")'. > But only after fixing an independent bug with > '4444bc2116ae ("wifi: mac80211: Proper mark iTXQs for resumption")' > problematic concurrent calls really happened and exposed the initial > issue. This is cosmetics but the recommended way to refer to commits is: This fixes commit c850e31f79f0 ("wifi: mac80211: add internal handler for wake_tx_queue"), which introduced ieee80211_handle_wake_tx_queue.... More info: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches