>As my understand, cv_wait and its brethren could be called from a 
>interrupt context, including a soft interrupt context.
>For this reason, when people read the timeout(9F), he will think since 
>timeout handler's context is considered as a soft interrupt context, it 
>will be safe if we called it in the timeout handler.
>But I did encounter the situation that the timeout handler attempts to 
>acquire a lock which held by other functions calling cv_timedwait, and 
>that caused the system hang.

I don't think that you can sleep in anyway in a soft interrupt handler
either except when acquiring an appropriate interrupt mutex.


Casper

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to