]> rtime.felk.cvut.cz Git - linux-imx.git/commit
net: pmtu_expires fixes
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 8 Jun 2011 06:07:07 +0000 (06:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2011 07:24:53 +0000 (00:24 -0700)
commitfe6fe792faec3fc2d2db39b69651682b8c4e7fcb
treebf2ea12d05616187177ae7b699c1349f4cf79871
parent6c43e0465f56248d9da56f2c4665ce1696766814
net: pmtu_expires fixes

commit 2c8cec5c10bc (ipv4: Cache learned PMTU information in inetpeer)
added some racy peer->pmtu_expires accesses.

As its value can be changed by another cpu/thread, we should be more
careful, reading its value once.

Add peer_pmtu_expired() and peer_pmtu_cleaned() helpers

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c