I am working on an extension to Solaris scheduler and I find myself needing to 
acquire locks on TWO kthread structs (via thread_lock(t)) at once, i.e., in a 
single function. I have not seen this done anywhere in Solaris kernel: usually 
one thread lock is held at a time, and so I am concerned that getting two locks 
on different kthread structs might lead to a deadlock. 

Do you know if two kthread locks are acquired simultaneously anywhere in the 
Solaris kernel and if so what locking protocol (if any) is followed?  Or should 
I try to solve my problem without holding two thread locks?
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to