kernel - Fix swapcache related crash
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Nov 2011 10:32:31 +0000 (02:32 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Nov 2011 10:32:31 +0000 (02:32 -0800)
commit739be60bf6ac8b23af2c538f35d8f503a234d194
tree34a8fd0a9f839d806fba736d973fa0184a41f065
parentb2d9f61f82fe77464ac5d8d480bdb7c7a6840e22
kernel - Fix swapcache related crash

* VM object must be held while vmobj_token serializes list, before
  the lwkt_yield() not after.

* Fixes crash when swapcache fills up and starts to remove entries.
sys/vm/vm_swapcache.c