From: NeilBrown Date: Mon, 21 Feb 2011 07:25:57 +0000 (+1100) Subject: md: avoid spinlock problem in blk_throtl_exit X-Git-Tag: v2.6.37.3~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eacacaf73496fdad9e82e4d81a1645be05cd3d59;p=pandora-kernel.git md: avoid spinlock problem in blk_throtl_exit commit da9cf5050a2e3dbc3cf26a8d908482eb4485ed49 upstream. blk_throtl_exit assumes that ->queue_lock still exists, so make sure that it does. To do this, we stop redirecting ->queue_lock to conf->device_lock and leave it pointing where it is initialised - __queue_lock. As the blk_plug functions check the ->queue_lock is held, we now take that spin_lock explicitly around the plug functions. We don't need the locking, just the warning removal. This is needed for any kernel with the blk_throtl code, which is which is 2.6.37 and later. Signed-off-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed