Commit d0ac30e7 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

net: ipa: don't use replenish_backlog

Rather than determining when to stop replenishing using the
replenish backlog, just stop when we have exhausted all available
transactions.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a606b90
...@@ -1087,11 +1087,8 @@ static void ipa_endpoint_replenish(struct ipa_endpoint *endpoint) ...@@ -1087,11 +1087,8 @@ static void ipa_endpoint_replenish(struct ipa_endpoint *endpoint)
if (test_and_set_bit(IPA_REPLENISH_ACTIVE, endpoint->replenish_flags)) if (test_and_set_bit(IPA_REPLENISH_ACTIVE, endpoint->replenish_flags))
return; return;
while (atomic_dec_not_zero(&endpoint->replenish_backlog)) { while ((trans = ipa_endpoint_trans_alloc(endpoint, 1))) {
trans = ipa_endpoint_trans_alloc(endpoint, 1); WARN_ON(!atomic_dec_not_zero(&endpoint->replenish_backlog));
if (!trans)
break;
if (ipa_endpoint_replenish_one(endpoint, trans)) if (ipa_endpoint_replenish_one(endpoint, trans))
goto try_again_later; goto try_again_later;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment