Fix a race on SMP systems. Since we might block while obtaining the MP
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 17 Sep 2004 09:53:27 +0000 (09:53 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 17 Sep 2004 09:53:27 +0000 (09:53 +0000)
commit4ac1a4cde6d6ef9ec723a219d2b43f6e248eb0d4
tree1ac5974382922aeb58682d9ee5ce4135d5662aaf
parent8c4b6601dd51b6ac48ebc5585d3008ad9e9da1d7
Fix a race on SMP systems.  Since we might block while obtaining the MP
lock we have to check sc->next to see if we raced a deletion of our
callout, and loop if we did.
sys/kern/kern_timeout.c