kernel - Make sure thread is released before migrating
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 6 Mar 2011 18:24:49 +0000 (10:24 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 6 Mar 2011 18:24:49 +0000 (10:24 -0800)
commit95858b9186e25a62d68c58e909b9fe7f50ee81d7
tree388d7b6bcf0ee704bb668a0b3b9401d5f9265f0a
parent03ac22da0ce225ca12694a9b80003ea708a64320
kernel - Make sure thread is released before migrating

* Make sure the current thread is in a released state before migrating it
  to another cpu.  Doing the release inside the lwkt_switch(), after we
  send the IPI, can result in a livelock.

Reported-by: Peter Avalos <peter@theshell.com>
sys/kern/lwkt_thread.c