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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:06:56 +0000 (23:06 -0400)
commit30dbed7b3dcc4b968ec050589f7acdcdabea8c7a
treed4851581816d12e06645ada494b6f045b74f734f
parentc6aa8bae477bf2fdaacbc8683f5801511aa3b859
mtip32xx: Fix for rmmod crash when drive is in FTL rebuild

[ Upstream commit 59cf70e236c96594d9f1e065755d8fce9df5356b ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/block/mtip32xx/mtip32xx.c