Re: locking and interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.Jain@xxxxxxxxxxxx> 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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux