Rajat San, Just asking (since i didn't see spinlock implementation in kernel src),
On Tue, Oct 6, 2009 at 5:52 PM, Rajat Jain <rajat.j...@infogain.com> wrote: > > Hello Govind, > > > What happens when you go for spin locks without > > disabling kernel preemption? Suppose you acquire > > a spin lock in a system call handler (a service > > routine on behalf of a user mode process) with > > kernel preemption enabled. > > This is not possible. Spin lock APIs disable kernel preemption > automatically. > Spin lock APIs disables kernel preemption in all its api or some specific apis only. Please confirm and elaborate. > > Thanks, > > Rajat > > Best regards, Krishna