kernel - Deoptimize refcount case
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 10 Nov 2011 18:02:30 +0000 (10:02 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 10 Nov 2011 18:02:30 +0000 (10:02 -0800)
commitd69db72b1a7495da31f52b159e817afb043017a0
treef2da49485fa7127092769ebcb2fd1e675368ac40
parentb0c15cdf199632dd1ff8a28f072af7e7bfcb9cec
kernel - Deoptimize refcount case

* Make sure the compiler does not optimize the loading of *countp as the
  value can change out from under us.  It's volatile anyway but don't take
  any chances.
sys/kern/kern_refcount.c