mtip32xx: Handle safe removal during IO
authorAsai Thambi SP <asamymuthupa@micron.com>
Thu, 25 Feb 2016 05:18:10 +0000 (21:18 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 16:08:43 +0000 (09:08 -0700)
commit51c6570eb922146470c2fe660c34585414679bd6
tree1bb30615e06ad211bd7c4185e163332410b1a469
parent59cf70e236c96594d9f1e065755d8fce9df5356b
mtip32xx: Handle safe removal during IO

Flush inflight IOs using fsync_bdev() when the device is safely
removed. Also, block further IOs in device open function.

Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Rajesh Kumar Sambandam <rsambandam@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
drivers/block/mtip32xx/mtip32xx.h