summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-01-12 07:30:10 -0600
committerDavid S. Miller <davem@davemloft.net>2022-01-12 14:39:53 +0000
commit6c0e3b5ce94947b311348c367db9e11dcb2ccc93 (patch)
tree93dca312e33469dc18862387d22d063dbeeaa3d6 /tools/perf/scripts/python/export-to-sqlite.py
parentc12837d1bb31032bead9060dec99ef310d5b9fb7 (diff)
net: ipa: fix atomic update in ipa_endpoint_replenish()
In ipa_endpoint_replenish(), if an error occurs when attempting to replenish a receive buffer, we just quit and try again later. In that case we increment the backlog count to reflect that the attempt was unsuccessful. Then, if the add_one flag was true we increment the backlog again. This second increment is not included in the backlog local variable though, and its value determines whether delayed work should be scheduled. This is a bug. Fix this by determining whether 1 or 2 should be added to the backlog before adding it in a atomic_add_return() call. Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Fixes: 84f9bd12d46db ("soc: qcom: ipa: IPA endpoints") Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions