]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtip32xx: Fix for rmmod crash when drive is in FTL rebuild
authorAsai Thambi SP <asamymuthupa@micron.com>
Thu, 25 Feb 2016 05:17:47 +0000 (21:17 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:51 +0000 (09:08 -0700)
commite241a8dab98aff4d79d36e8cc71c4487c909bdd5
tree068cbb8c94b19d9690b22353314c656f4a5176af
parent3d58a02e4fdad9cb7ce0799363eaa54c012fcd33
mtip32xx: Fix for rmmod crash when drive is in FTL rebuild

commit 59cf70e236c96594d9f1e065755d8fce9df5356b upstream.

When FTL rebuild is in progress, alloc_disk() initializes the disk
but device node will be created by add_disk() only after successful
completion of FTL rebuild. So, skip deletion of device node in
removal path when FTL rebuild is in progress.

Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/mtip32xx/mtip32xx.c