https://github.com/torvalds/linux
Revision 0d9f4f135eb6dea06bdcb7065b1e4ff78274a5e9 authored by Jonathan Brassow on 16 May 2012, 09:06:14 UTC, committed by NeilBrown on 17 May 2012, 00:38:24 UTC
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 <neilb@suse.de>
1 parent 6508fdb
History
Tip revision: 0d9f4f135eb6dea06bdcb7065b1e4ff78274a5e9 authored by Jonathan Brassow on 16 May 2012, 09:06:14 UTC
MD: Add del_timer_sync to mddev_suspend (fix nasty panic)
Tip revision: 0d9f4f1
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 205.4 KB
Makefile -rw-r--r-- 52.2 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top