Xin LI 64e0f48e7c Add a bandaid for a long-standing race condition during route entry
un-expiring.

The previous version of code have no locking when testing rt_refcnt.
The result of the lack of locking may result in a condition where
a routing entry have a reference count but at the same time have
RTPRF_OURS bit set and an expiration timer.  These would eventually
lead to a panic:

	panic: rtqkill route really not free

When the system have ICMP redirects accepted from local gateway
in a moderate frequency, for instance.

Commit this workaround for now until we have some better solution.

PR:		kern/149804
Reviewed by:	bz
Tested by:	Zhao Xin, Pete French
MFC after:	2 weeks
2010-09-27 19:26:56 +00:00
..
2009-11-19 13:39:07 +00:00
2010-09-02 17:43:44 +00:00
2010-09-02 17:43:44 +00:00
2010-08-19 11:31:03 +00:00
2010-08-19 11:31:03 +00:00
2010-08-20 17:52:49 +00:00
2010-09-15 20:41:20 +00:00
2010-08-19 11:31:03 +00:00
2010-08-19 11:31:03 +00:00
2010-05-09 20:32:00 +00:00