]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/edac: fix workq reset deadlock
authorDoug Thompson <dougthompson@xmission.com>
Thu, 19 Jul 2007 08:50:30 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:57 +0000 (10:04 -0700)
commit8871cb06a048c6d085a91138f3e1d472cdc5a50a
tree29ff1069cb99043f943cf11bc4423051bd42fbfc
parent80906fbef01514ce407f9196fe35fe051897033a
drivers/edac: fix workq reset deadlock

Fix mutex locking deadlock on the device controller linked list.  Was calling
a lock then a function that could call the same lock.  Moved the cancel workq
function to outside the lock

Added some short circuit logic in the workq code

Added comments of description

Code tidying

Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Cc: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/edac_device.c
drivers/edac/edac_mc.c