Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18846116rwd; Wed, 28 Jun 2023 01:13:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7v0Gw5XqyKAIke6jVFMWgPFZe4eyotRv0mu9QJpL2TQgrfflrPcqudR2WMpP59ZQhP8GRv X-Received: by 2002:a17:907:36c2:b0:987:5761:2868 with SMTP id bj2-20020a17090736c200b0098757612868mr26230467ejc.11.1687939995735; Wed, 28 Jun 2023 01:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687939995; cv=none; d=google.com; s=arc-20160816; b=vJZJZMQz2z6WI85LoMSSYhU6pvAFpwsy1+Ce6lxXFbR2Ldps/nQx2iSwfliFIEIZvO R7PxNYGIv4yUZV5wHI7gy64BOGctgqSxdnZY1VpNh11hskw/E0wfEC1+bsqNVZflghm3 xV0U6pcMbY4imnx3yAOhD9vBp8wHDALbJC7lIPdE5wBovAeQ3qvg1gv3jcVsY1SiAxIQ EM9ONDrh6avEXxWP0ZGMEtzWmwrP9uCk+VPOvRUwRCDm4Rbm6GQIDGCGxBS1zyQgUbkM zrig/ohsqgG8wsBJqjTvx/lUYr6T7NYaC067KPWzTt9Gh0yK2uMzuJu1sDTgKyucgONe kouA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=aOLoTVmiFCguShJ+6xSk7vCEfmg/+1Bak/BzwVsTFb4=; fh=EaVcBK0SCX8nwRw6YdnnApUcOmSBsPYI4KgTyrpEVyk=; b=bj5giCnkkw5UDCsPpdEAGGyXemXgN6e8R82h0EbwC1wGwGeX7kA2dJriorkuMaXeOs gHkeEXFRXdozrWirGrlHUH9SsAMYlkN7IFWte1NDoCCosRIgw+x7xqW4Alp4KfS9fQIl bh3DU03TLNjmb7zTz4KRg/D8rNJLqstGYY6qIJ1gL1CkZqlHtzsgYiClGSe+AteLmrYD mmVLpBlVsiFNDfYPsVQuNGnOOc4AfdsSFRamNaP2ZLoE9CanglR+uaHNokmkuFeD/mJ2 lKlSlYE6mZd7UPa8qyFWRSC34W79syO20kgAM+Ww6eOmzQzDY4Wo08z6qjfzhbTI6JG8 08ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=w9obb34E; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a1709060b4700b00988f0465c86si4784623ejg.565.2023.06.28.01.12.44; Wed, 28 Jun 2023 01:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=w9obb34E; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232533AbjF1ILa (ORCPT + 58 others); Wed, 28 Jun 2023 04:11:30 -0400 Received: from forward500c.mail.yandex.net ([178.154.239.208]:60744 "EHLO forward500c.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233316AbjF1IIz (ORCPT ); Wed, 28 Jun 2023 04:08:55 -0400 Received: from mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:4212:0:640:eaad:0]) by forward500c.mail.yandex.net (Yandex) with ESMTP id 8BCF45ED15; Wed, 28 Jun 2023 07:54:24 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id NsDSlu5DfOs0-zpDVufAI; Wed, 28 Jun 2023 07:54:24 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687928064; bh=aOLoTVmiFCguShJ+6xSk7vCEfmg/+1Bak/BzwVsTFb4=; h=From:In-Reply-To:Cc:Date:References:To:Subject:Message-ID; b=w9obb34EiDOkZWU4JbCFTg0l345qzWF1IhV1xQXxo6sINDic8BcJ4FJzg/aSif/2R DuhQ+q5b9qjVGpmju60z6C6IyNcD6UY3JYnCfQnT7UxW09lXxG+/GHYe2jO+mvQxDQ SINg9STthfiuPJ4/fSl6n81cNYKV0tufka2cLw/A= Authentication-Results: mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <3e7faf02-2724-9d27-364e-eedcd5fc5567@yandex.ru> Date: Wed, 28 Jun 2023 07:54:22 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] wifi: plfxlc: Fix possible data races in rx_urb_complete() To: Tuo Li , srini.raju@purelifi.com, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, baijiaju1990@outlook.com, BassCheck References: <20230628022121.1010517-1-islituo@gmail.com> Content-Language: en-US From: Dmitry Antipov In-Reply-To: <20230628022121.1010517-1-islituo@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 6/28/23 05:21, Tuo Li wrote: > if (tx->submitted_urbs++ < PURELIFI_URB_RETRY_MAX) { > dev_dbg(plfxlc_urb_dev(urb), "urb %p resubmit %d", urb, > tx->submitted_urbs++); BTW, doing 'tx->submitted_urbs++' inside a debugging statement is most likely a bad idea. Dmitry