Re: Critical sections between tasklets and other kernel code

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

 



On Fri, Jul 12, 2002 at 02:50:11PM -0700, Shripal wrote:
> When an interrupt occurs, the ISR schedules a tasklet for further processing. I
> have some data that is accessed from both, ioctl and the tasklet. Do I need to
> protect this data using critical section?

On SMP machines your ioctl could be running at the same time as your
tasklet; you should use locks to prevent corruption. I believe tasklets
run in interrupt context in addition to just before returning to user
space, so I think semaphores aren't available.

-- 
http://www.wirex.com/

Attachment: pgp00126.pgp
Description: PGP signature


[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