[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9cb552e5-7bae-c591-a0b7-14f25a41eaf9@linaro.org>
Date: Wed, 12 Jan 2022 07:16:12 -0600
From: Alex Elder <elder@...aro.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, jponduru@...eaurora.org,
avuyyuru@...eaurora.org, bjorn.andersson@...aro.org,
agross@...nel.org, cpratapa@...eaurora.org,
subashab@...eaurora.org, evgreen@...omium.org, elder@...nel.org,
netdev@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net 2/2] net: ipa: prevent concurrent replenish
On 1/11/22 10:04 PM, Jakub Kicinski wrote:
> On Tue, 11 Jan 2022 13:21:50 -0600 Alex Elder wrote:
>> Use a new atomic variable to ensure only replenish instance for an
>> endpoint executes at a time.
>
> Why atomic_t? test_and_set_bit() + clear_bit() should do nicely here?
I think it foreshadows the replenish logic improvements
I'm experimenting with. The bit operations are probably
best to represent Booleans, so I'll send version 2 that
adds and uses a bitmask instead.
Thanks.
-Alex
Powered by blists - more mailing lists