]> git.baikalelectronics.ru Git - kernel.git/commit
[IPVS]: Use IP_VS_WAIT_WHILE when encessary.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 10 Aug 2007 22:50:30 +0000 (15:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 14 Aug 2007 05:52:15 +0000 (22:52 -0700)
commit5846719a1c08188eea9e5a57d5376f4682c2e3c6
tree2919ea031c5dcc43668f080faa3a463ac04cfed6
parent40ff1233091e2436fd01499431c5feb1ddc1299c
[IPVS]: Use IP_VS_WAIT_WHILE when encessary.

For architectures that don't have a volatile atomic_ts constructs like
while (atomic_read(&something)); might result in endless loops since a
barrier() is missing which forces the compiler to generate code that
actually reads memory contents.
Fix this in ipvs by using the IP_VS_WAIT_WHILE macro which resolves to
while (expr) { cpu_relax(); }
(why isn't this open coded btw?)

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipvs/ip_vs_ctl.c