* [PATCH] [Bug 8998] Mutex documentation is unclear about software interrupts, tasklets and timers in Linux 2.6.23-rc
@ 2007-09-09 19:02 Matti Linnanvuori
2007-09-09 19:06 ` Arjan van de Ven
0 siblings, 1 reply; 2+ messages in thread
From: Matti Linnanvuori @ 2007-09-09 19:02 UTC (permalink / raw)
To: bugme-daemon, linux-kernel; +Cc: akpm, mingo
diff -uprN linux-2.6.23/Documentation/mutex-design.txt linux-2.6.23-patched/Documentation/mutex-design.txt
--- linux-2.6.23/Documentation/mutex-design.txt 2007-09-09 21:47:10.545275000 +0300
+++ linux-2.6.23-patched/Documentation/mutex-design.txt 2007-09-09 21:48:17.935493000 +0300
@@ -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:
diff -uprN linux-2.6.23/include/linux/mutex.h linux-2.6.23-patched/include/linux/mutex.h
--- linux-2.6.23/include/linux/mutex.h 2007-09-09 21:49:04.531143500 +0300
+++ linux-2.6.23-patched/include/linux/mutex.h 2007-09-09 21:49:44.946525500 +0300
@@ -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
Signed-off-by: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
__________________________________
Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] [Bug 8998] Mutex documentation is unclear about software interrupts, tasklets and timers in Linux 2.6.23-rc
2007-09-09 19:02 [PATCH] [Bug 8998] Mutex documentation is unclear about software interrupts, tasklets and timers in Linux 2.6.23-rc Matti Linnanvuori
@ 2007-09-09 19:06 ` Arjan van de Ven
0 siblings, 0 replies; 2+ messages in thread
From: Arjan van de Ven @ 2007-09-09 19:06 UTC (permalink / raw)
To: Matti Linnanvuori; +Cc: bugme-daemon, linux-kernel, akpm, mingo
On Sun, 9 Sep 2007 12:02:53 -0700 (PDT)
Matti Linnanvuori <mattilinnanvuori@yahoo.com> wrote:
Hi,
thank you for improving the documentation
> diff -uprN linux-2.6.23/Documentation/mutex-design.txt
> linux-2.6.23-patched/Documentation/mutex-design.txt ---
>
>
> Signed-off-by: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-09 19:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-09 19:02 [PATCH] [Bug 8998] Mutex documentation is unclear about software interrupts, tasklets and timers in Linux 2.6.23-rc Matti Linnanvuori
2007-09-09 19:06 ` Arjan van de Ven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®