commit | 408f0a6c21e124cc4f6c7aa370b38aa47e55428d | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sat Dec 03 11:14:51 2016 -0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 05 13:32:22 2016 -0500 |
tree | 11a45f9e4e5cfd77e62d1363ad734e6fe753cd91 | |
parent | 40fc3423b983b864bf70b03199191260ae9b2ea6 [diff] |
tcp: tsq: remove one locked operation in tcp_wfree() Instead of atomically clear TSQ_THROTTLED and atomically set TSQ_QUEUED bits, use one cmpxchg() to perform a single locked operation. Since the following patch will also set TCP_TSQ_DEFERRED here, this cmpxchg() will make this addition free. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>