]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dca: redesign locks to fix deadlocks
authorMaciej Sosnowski <maciej.sosnowski@intel.com>
Tue, 3 Feb 2009 07:26:57 +0000 (23:26 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 19:17:31 +0000 (11:17 -0800)
commit34dcc7657b7e11976cb9ab67e0bd3135539c97ea
treed2c76b23c4329b6268ee3015410a8a5d831f71c2
parentf10f9dd87161b70da6ec3d257c1f01a6ac02536f
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 <maciej.sosnowski@intel.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/dca/dca-core.c