kernel - Fix racing assertion
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 9 May 2014 17:24:56 +0000 (10:24 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 9 May 2014 17:24:56 +0000 (10:24 -0700)
commitc06df2fb7ad1d7a8500c384f5d124de6adbb4881
treefb0b84ac3334a0a6e344edfda84b595f99328b11
parentb3ccace27aa9cf94684681dc5edb5266346ba8ba
kernel - Fix racing assertion

* Two semaphore assertions could panic the box because they were testing
  conditions subject to SMP races.

* Move the assertions past the lock so they are no longer subject to SMP
  races.

Reported-by: marino
sys/kern/sysv_sem.c