Re: [RFC PATCH 2.6.17-mm1 4/3] ieee1394: convert ieee1394_transactions from semaphores to waitqueue



I wrote:
There were 63 instances of counting semaphores used for each hpsb_host.
All of them are now replaced by a single wait_queue.

After this and patch "ieee1394: dv1394: sem2mutex conversion", the following semaphores remain in the ieee1394 subsystem:

highlevel.c: hl_drivers_sem (RW semaphore)
nodemgr.c: subsys.rwsem (driver core's RW semaphores)
raw1394.c: fi->complete_sem (completion semaphore)
--
Stefan Richter
-=====-=-==- -==- ==---
http://arcgraph.de/sr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: A general question on SMP-safe driver code.
    ... - you can't use semaphores to protect against interrupts, ... driver (or, if the driver can drive multiple independent ports, one per ... The biggest problem with converting old-style irq locks into spinlocks ... You can make your own nesting spinlocks, of course, but the reason there ...
    (Linux-Kernel)
  • Re: [PATCH] Replace completions with semaphores
    ... "N" outstanding firmware commands to be in flight, and the driver uses a ... semaphore to handle issuing firmware commands. ... the argument that removing semaphores makes the kernel as a whole ...
    (Linux-Kernel)
  • Semaphores in the linux kernel
    ... I am trying to port a vxWorks driver to Linux. ... semaphores and message queues mostly for signalling a task from an ISR. ...
    (comp.os.linux.development.system)
  • Re: [BUG on PREEMPT_RT, 2.6.23.1-rt5] in rt-mutex code and signals
    ... The taker of a mutex must also be the one that releases it. ... Exactly why it should be a completion or compat semaphores. ... Attached I have put a sample driver I just hacked together a few ... also OOPSes although slightly different than on ARM. ...
    (Linux-Kernel)
  • Re: [PATCH] Replace completions with semaphores
    ... let alone one where it's the only choice. ... "N" outstanding firmware commands to be in flight, and the driver uses a ... semaphore to handle issuing firmware commands. ... the argument that removing semaphores makes the kernel as a whole ...
    (Linux-Kernel)