A question of lock usage in OpenBSD kernel code

2017-06-23 Thread Jia-Ju Bai
ent thread can sleep. From my knowledge of OpenBSD document, I only find that "mutex lock" can not be used in this situation. So I have two questions" (1) What about "rw lock"? (2) What about other kinds of locks? I am looking forward to useful opinions and answers Thanks, Jia-Ju Bai

Re: A question of lock usage in OpenBSD kernel code

2017-06-24 Thread Jia-Ju Bai
Thanks, Stefan :) On 2017/6/24 10:19, Stefan Sperling wrote: Yes, rwlock(9) style locks can sleep.