From: Maciej Sosnowski Date: Tue, 3 Feb 2009 07:26:57 +0000 (-0800) Subject: dca: redesign locks to fix deadlocks X-Git-Tag: v2.6.27.40~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34dcc7657b7e11976cb9ab67e0bd3135539c97ea;p=pandora-kernel.git dca: redesign locks to fix deadlocks commit eb4400e3a040b90a3ad805b01fcbc99a5f615c8f upstream. Change spin_locks to irqsave to prevent dead-locks. Protect adding and deleting to/from dca_providers list. Drop the lock during dca_sysfs_add_req() and dca_sysfs_remove_req() calls as they might sleep (use GFP_KERNEL allocation). Signed-off-by: Maciej Sosnowski Acked-by: Jeff Kirsher Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed