Skip to contentSkip to conversation

Mutex documentation is unclear about software interrupts, tasklets and timers in Linux 2.6.23-rc

PATCH In review Matti Linnanvuori 2 participants 2 messages Sep 9, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Mutex documentation is unclear about software interrupts, tasklets and timers in Linux 2.6.23-rc

Documentation/mutex-design.txt 2007-09-09 21:48:17.935493000 +0300 renamed from Documentation/mutex-design.txt 2007-09-09 21:47:10.545275000 +0300 +2 -1
diff -uprN linux-2.6.23/Documentation/mutex-design.txt linux-2.6.23-patched/Documentation/mutex-design.txt
@@ -90,7 +90,8 @@ of advantages of mutexes:
    * - task may not exit with mutex held
    * - memory areas where held locks reside must not be freed
    * - held mutexes must not be reinitialized
-   * - mutexes may not be used in irq contexts
+   * - mutexes may not be used in hardware or software interrupt
+   *   contexts such as tasklets and timers
 
    furthermore, there are also convenience features in the debugging
    code:
include/linux/mutex.h 2007-09-09 21:49:44.946525500 +0300 renamed from include/linux/mutex.h 2007-09-09 21:49:04.531143500 +0300 +2 -1
diff -uprN linux-2.6.23/include/linux/mutex.h linux-2.6.23-patched/include/linux/mutex.h
@@ -29,7 +29,8 @@
  * - task may not exit with mutex held
  * - memory areas where held locks reside must not be freed
  * - held mutexes must not be reinitialized
- * - mutexes may not be used in irq contexts
+ * - mutexes may not be used in hardware or software interrupt
+ *   contexts such as tasklets and timers
  *
  * These semantics are fully enforced when DEBUG_MUTEXES is
  * enabled. Furthermore, besides enforcing the above rules, the mutex
      __________________________________  

Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever