diff options
author | Asai Thambi SP <asamymuthupa@micron.com> | 2016-02-24 21:18:10 -0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-03-03 09:08:43 -0700 |
commit | 51c6570eb922146470c2fe660c34585414679bd6 (patch) | |
tree | 1bb30615e06ad211bd7c4185e163332410b1a469 /drivers/block/mtip32xx/mtip32xx.h | |
parent | 59cf70e236c96594d9f1e065755d8fce9df5356b (diff) | |
download | linux-51c6570eb922146470c2fe660c34585414679bd6.tar.bz2 |
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>
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.h')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 8635239c521f..50af742421e2 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h @@ -158,6 +158,7 @@ enum { MTIP_DDF_RESUME_BIT = 6, MTIP_DDF_INIT_DONE_BIT = 7, MTIP_DDF_REBUILD_FAILED_BIT = 8, + MTIP_DDF_REMOVAL_BIT = 9, MTIP_DDF_STOP_IO = ((1 << MTIP_DDF_REMOVE_PENDING_BIT) | (1 << MTIP_DDF_SEC_LOCK_BIT) | |