diff options
author | Hiroaki SHIMODA <shimoda.hiroaki@gmail.com> | 2012-05-30 12:25:37 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 09:03:43 -0700 |
commit | 4f4bdaeb40df95499c1ee7ea3fbca9d76174a59e (patch) | |
tree | f74221a3a32dc22e9f54fd7dbafd615d8afdec14 /net | |
parent | 1414a53d956340ca8b1b27e05ab94ba63e82ed97 (diff) |
bql: Avoid possible inconsistent calculation.
[ Upstream commit 914bec1011a25f65cdc94988a6f974bfb9a3c10d ]
dql->num_queued could change while processing dql_completed().
To provide consistent calculation, added an on stack variable.
Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions