From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A5051CA1C for ; Wed, 9 Aug 2023 17:46:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AAD8C433C8; Wed, 9 Aug 2023 17:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691603191; bh=+h95Egn4FLPJwtzkMsZtjRU5YQ/9jgcffANX0lizmvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KxDlBdS1kdFQN6wqcING9qSR3RK1O+2BnmK1SdosMJbnEq6R3BA7LWsYCVlscfcZR a0OzwKHpDbXVRPmdOExD1ZWL6MCh3WPur3YVhSrTG/o/5qPDU5Hr1Cujxf/p/kg9vi cjpCAEsEHF2shDsqWC2ophNEOreL4TFDsesyheivBsTjWaNfK7xChz0ObG0kV6KZyn XfUKUhjSNAeZ7DS0YNDHTkFRJalRnL5t3a21DB2FAne7lI9Q0EEIPLfy4wXyfny1PP OTIzMffZ0NYyCXtKQHjgLcKnFNPBhbPJdarzF/ONZATpNVyciSvphHmc9Te9uzvcae +qtnm3XEMPLaw== Date: Wed, 9 Aug 2023 19:46:27 +0200 From: Simon Horman To: Przemek Kitszel Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Jacob Keller , Tony Nguyen , Simon Horman Subject: Re: [PATCH iwl-next v4 0/3] ice: split ice_aq_wait_for_event() func into two Message-ID: References: <20230808215417.117910-1-przemyslaw.kitszel@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230808215417.117910-1-przemyslaw.kitszel@intel.com> On Tue, Aug 08, 2023 at 05:54:14PM -0400, Przemek Kitszel wrote: > Mitigate race between registering on wait list and receiving > AQ Response from FW. > > The first patch fixes bound check to be more inclusive; > the second one refactors code to make the third one smaller, > which is an actual fix for the race. > > Thanks Simon Horman for pushing into split, it's easier to follow now. > > v4: remove excessive newlines, thanks Tony for catching this up > v3: split into 3 commits > > Przemek Kitszel (3): > ice: ice_aq_check_events: fix off-by-one check when filling buffer > ice: embed &ice_rq_event_info event into struct ice_aq_task > ice: split ice_aq_wait_for_event() func into two Thanks for the split :) Reviewed-by: Simon Horman