mtip32xx: Abort I/O during secure erase operation
authorAsai Thambi SP <asamymuthupa@micron.com>
Mon, 11 May 2015 22:51:27 +0000 (15:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 16 Jun 2015 14:24:47 +0000 (08:24 -0600)
commit686d8e0bb5207c2a651eb5b28ac15db33adda59d
tree0ac475fc3864349ae7ae70697c07bb4e66dd7554
parentee04bed690cb49a49512a641405bac42d13c2b2a
mtip32xx: Abort I/O during secure erase operation

Currently I/Os are being queued when secure erase operation starts, and issue
them after the operation completes. As all data will be gone when the operation
completes, any queued I/O doesn't make sense. Hence, abort I/O (return -ENODATA)
as soon as the driver receives.

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>
drivers/block/mtip32xx/mtip32xx.c