diff options
| author | Jason Wang <jasowang@redhat.com> | 2013-06-06 03:54:33 +0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-06-08 10:49:08 +0400 |
| commit | ed0483fa06e0efb86a82e382a00dbad02b62807c (patch) | |
| tree | 2a0c920af1a2a7f748d81248cb027ca12f7f0bb5 /tools/perf/scripts/python | |
| parent | e403d295817cf9f8be3110eb7ee1a03981287495 (diff) | |
| download | linux-ed0483fa06e0efb86a82e382a00dbad02b62807c.tar.xz | |
macvtap: fix a possible race between queue selection and changing queues
Complier may generate codes that re-read the vlan->numvtaps during
macvtap_get_queue(). This may lead a race if vlan->numvtaps were changed in the
same time and which can lead unexpected result (e.g. very huge value).
We need prevent the compiler from generating such codes by adding an
ACCESS_ONCE() to make sure vlan->numvtaps were only read once.
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
