Revert 1.166 (but keep the bufq_wait() interface change), for this is wrong
authormiod <miod@openbsd.org>
Sun, 18 Jan 2015 14:01:54 +0000 (14:01 +0000)
committermiod <miod@openbsd.org>
Sun, 18 Jan 2015 14:01:54 +0000 (14:01 +0000)
commit739b1a7edab304dc058452a6895f7c6c82aef505
treefe749f1a1258943846f11f2a119ec0981e4ad16d
parente286121a40eec8d7ac435f0a8550ca3375b86fc8
Revert 1.166 (but keep the bufq_wait() interface change), for this is wrong
and the bufq pointer might be NULL at the time it is `saved'.

Found the hard way on sparc due to the limited kva, with all disk active
processes ending up sleeping on "buf_needva".

ok kettenis@ krw@
sys/kern/vfs_bio.c