K 10 svn:author V 3 mav K 8 svn:date V 27 2013-10-15T21:04:18.217321Z K 7 svn:log V 382 Introduce THREAD_CAN_SLEEP() to check whether current thread is allowed to sleep by checking ((curthread)->td_no_sleeping == 0). Use that to find out whether GEOM and classes code can sleep. Previous check for one of GEOM threads was insufficient because request can be sent from other unrelated request bio_done() method called at interrupt thread, where sleeping is prohibited. END