Don't sleep while holding the uvm_psel_lck mutex. Should fix "locking against
authorkettenis <kettenis@openbsd.org>
Sat, 24 Jul 2010 15:40:39 +0000 (15:40 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 24 Jul 2010 15:40:39 +0000 (15:40 +0000)
commitcf70c43b1a1e4e3bd82336e4b0f233c4b81aa264
tree10e1585064efe7578ac3c6f87a893eb973f43794
parent766ce6e4af953d0ccb8cbae00bcbb9ca3dddd548
Don't sleep while holding the uvm_psel_lck mutex.  Should fix "locking against
myself" panics that some people have seen over the last year-and-a-half.

Cherry picked from a more complex (and therefore scarier) diff from oga@.

ok tedu@, oga@
sys/uvm/uvm_pager.c