]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitbf52fa4a26567bfbf5b1d30f84cf0226e61d26cd
tree29ff1069cb99043f943cf11bc4423051bd42fbfc
parentfb3fb2068775a1363265edc00870aa5e2f0e3631
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