Re: recursive locking in linux?

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

 



On Mon, 19 Mar 2007, Arjan van de Ven wrote:

> > i thought you couldn't use semaphores from interrupt context,
> > anyway. can someone clarify this?  thanks.
>
> you can release semaphores in interrupt context, and you can do a
> trylock in interrupt context as well.
>
> not so with mutexes

  i was asking about some issues related to semaphores and mutexes on
the kernel janitors list recently, and a reader posted the following:

http://lists.linux-foundation.org/pipermail/kernel-janitors/2007-March/008847.html

by way of clarification.

  at the same time, i was trying to document the various forms of
concurrency and potential cleanup here (not too much there, i've just
started):

http://fsdev.net/wiki/index.php?title=Concurrency

but i'm guessing that there's a fair amount of cleanup that can be
done WRT replacing semaphores in some places with one of the newer
forms of concurrency.

  if anyone wants to add content to that page, feel free.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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