kernel - Improve tsleep/wakeup queue collisions (2)
commitb4d1b684d6fb1e2d6f102be16729f1b65c53b183
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Oct 2017 01:11:08 +0000 (30 18:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Oct 2017 01:11:08 +0000 (30 18:11 -0700)
treeb532e73c04b33f58bced92937000741059fe898d
parent616bc26b4964cc05c0649e6fa65cc5eb2f5b50f4
kernel - Improve tsleep/wakeup queue collisions (2)

* Fix SMP race.  When testing ident0 against -1 or the ident value
  as stored in a remote cpu's structure, ident0 must be loaded from memory
  once to avoid a cross-over race.
sys/kern/kern_synch.c