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)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 16:08:43 +0000 (09:08 -0700)
commit59cf70e236c96594d9f1e065755d8fce9df5356b
treec581336d6c120a95c66c2bc1ea1a9f0fc4b011b5
parentd8a18d2d8f5de55666c6011ed175939d22c8e3d8
mtip32xx: Fix for rmmod crash when drive is in FTL rebuild

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>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c