]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
locking/mutexes: Documentation update/rewrite
authorDavidlohr Bueso <davidlohr@hp.com>
Thu, 29 May 2014 04:36:43 +0000 (21:36 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Jun 2014 11:29:37 +0000 (13:29 +0200)
commit9161f5409798d52aa8598ff12575fde2327bed84
treea6ea49760c3b3a0fc3f5778568549d6a8ff982fb
parent0cc3d01164aba483edd8232aa5c781136843c367
locking/mutexes: Documentation update/rewrite

Our mutexes have gone a long ways since the original
implementation back in 2005/2006. However, the mutex-design.txt
document is still stuck in the past, to the point where most of
the information there is practically useless and, more
important, simply incorrect. This patch pretty much rewrites it
to resemble what we have nowadays.

Since regular semaphores are almost much extinct in the kernel
(most users now rely on mutexes or rwsems), it no longer makes
sense to have such a close comparison, which was copied from
most of the cover letter when Ingo introduced the generic mutex
subsystem.

Note that ww_mutexes are intentionally left out, leaving things
as generic as possible.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Cc: tim.c.chen@linux.intel.com
Cc: paulmck@linux.vnet.ibm.com
Cc: waiman.long@hp.com
Cc: jason.low2@hp.com
Cc: aswin@hp.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1401338203.2618.11.camel@buesod1.americas.hpqcorp.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/mutex-design.txt