Re: preemptible spinlock?

2021-04-23 Thread Hyeonggon Yoo
Thank you so much for kindly explaining the problem! as Wonhyuk Yang and Max Filippov said, I didn't consider the case that interrupt handler holds same lock. there can be deadlock as you said. 2021년 4월 23일 (금) 오후 3:45, Max Filippov 님이 작성: > > On Thu, Apr 22, 2021 at 11:28 PM Wonhyuk Yang

Re: preemptible spinlock?

2021-04-23 Thread Max Filippov
On Thu, Apr 22, 2021 at 11:28 PM Wonhyuk Yang wrote: > > I think the main idea spinlock disables preemption is, > > > the other process that's spinning on the lock can acquire lock. > > > but in some implementations of spinlock, like qspinlock in x86 (or mcs > > lock), > > I think there's no

RE: preemptible spinlock?

2021-04-23 Thread Wonhyuk Yang
Hi, > I think the main idea spinlock disables preemption is, > the other process that's spinning on the lock can acquire lock. > but in some implementations of spinlock, like qspinlock in x86 (or mcs lock), > I think there's no need to disable preemption. because processes > waiting for lock