Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp624214ybl; Fri, 13 Dec 2019 01:57:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyh/PfphXqhSUsqqoxTcIGM5o/UqEeia+wHr/VjA+r//I7h8UB4Yg3g451Kicd6WF1y9zmI X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr14109611otq.75.1576231046764; Fri, 13 Dec 2019 01:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576231046; cv=none; d=google.com; s=arc-20160816; b=XDYKnsPxcnPsRXwT3s9LE9/d+fzfi5ATPWqKnDrZaTAC8QNvfTJSyTN2sHznjMUXpx L3lvV6xDzNmZ3TJor5zTvgxRdIeNt9pGtc8jNhaYWwKrKsgonCGiW3nHe53hU4hgfzaP I0KW4EBiDFPRHUT1Y9PWffe98LrqmMQJj+Re4LNBdW654HWLfUiF4oKLfhmnBDSUoc03 8yAz8qynfYwbaOnY7JRfkHiXHgYW8cr3TF/OzLdt8j815DL8Ss575Z1qrgFMCzO1D3Ut dVscq2lSViMLHNP/+Jhj1SP6Gf7EQk5rtVuWFsqZ5YlIIWed0MVHLaN/qBmWrNxJ24r+ O5Hg== 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=aP5yswNmjYi3djcYHWSf+HQNtEjkt6IiL/pY618JoLE=; b=Ixl8looJ1JL/m8to/kisOlTyOvUwd6yK7whwQPAg6MKu2/yU5fUu+fd0uFj25+8/Ne edx13LyQyNKUG7kBHzCYxmc2AwTHyfsZOOz7UdyWrcy76lyAuCIrpjnhwH23Z7OYSE0w Nl0MBsKPjlvT+Ve5FLkx5NQ1WC4FF20kMUhu1Jo6VHlLZp0cfkJGH3z+7IpU0F+cjRka IZjzvnRetzbPMT9m+pJw+QgAhJzhPlK9dCJVGdb5GQCO8TBhxiMeRgL22ZCZ+VspHZmV mA/sulvDcqsMhN6l7MPe3h5JUVCAivCc4qmtex6dVfQ7hP24GQsPxioXs574neJEmQJW IgCQ== 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 z23si4597781otk.166.2019.12.13.01.57.15; Fri, 13 Dec 2019 01:57:26 -0800 (PST) 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 S1726608AbfLMJ4Q (ORCPT + 99 others); Fri, 13 Dec 2019 04:56:16 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:45458 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfLMJ4Q (ORCPT ); Fri, 13 Dec 2019 04:56:16 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1ifhgE-009eL1-3i; Fri, 13 Dec 2019 10:56:14 +0100 Message-ID: <94471b2381bee394f9708eae8ba47129f3facd03.camel@sipsolutions.net> Subject: Re: [PATCH 2/4] mac80211: fix issue in loop scenario From: Johannes Berg To: Yibo Zhao , linux-wireless@vger.kernel.org Cc: ath10k@lists.infradead.org Date: Fri, 13 Dec 2019 10:56:12 +0100 In-Reply-To: <1576221593-1086-3-git-send-email-yiboz@codeaurora.org> (sfid-20191213_082426_564220_0827923D) References: <1576221593-1086-1-git-send-email-yiboz@codeaurora.org> <1576221593-1086-3-git-send-email-yiboz@codeaurora.org> (sfid-20191213_082426_564220_0827923D) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2019-12-13 at 15:19 +0800, Yibo Zhao wrote: > In a loop txqs dequeue scenario, if the first txq in the rbtree gets > removed from rbtree immediately in the ieee80211_return_txq(), the > loop will break soon in the ieee80211_next_txq() due to schedule_pos > not leading to the second txq in the rbtree. Thus update schedule_pos > to previous node once the node of schedule_pos is either removed from > rbtree or move to other location in rbtree due to airtime update. For my understanding - this is a fix to the first patch in the series? I guess you didn't squash it because that's Toke's patch or something? I tend to think you still should, and annotate the changes, but I wanted to understand it first. johannes