From: Jonathan Brassow Date: Wed, 16 May 2012 09:06:14 +0000 (-0500) Subject: MD: Add del_timer_sync to mddev_suspend (fix nasty panic) X-Git-Tag: v3.4~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d9f4f135eb6dea06bdcb7065b1e4ff78274a5e9;p=pandora-kernel.git MD: Add del_timer_sync to mddev_suspend (fix nasty panic) Use del_timer_sync to remove timer before mddev_suspend finishes. We don't want a timer going off after an mddev_suspend is called. This is especially true with device-mapper, since it can call the destructor function immediately following a suspend. This results in the removal (kfree) of the structures upon which the timer depends - resulting in a very ugly panic. Therefore, we add a del_timer_sync to mddev_suspend to prevent this. Cc: stable@vger.kernel.org Signed-off-by: NeilBrown --- Reading git-diff-tree failed