]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: suspend i/o during runtime blk_integrity_unregister
authorDan Williams <dan.j.williams@intel.com>
Sun, 18 Dec 2016 14:58:48 +0000 (06:58 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:29 +0000 (13:40 -0700)
commit0b52ddb75e7421844931ebd0c2b9b2b19ded298f
tree2f8a860eee2ad5787ed684a96dafa462d94d1246
parent13f3081ec8d498e30269290d7d5b8d22cfdb0189
nvme: suspend i/o during runtime blk_integrity_unregister

Synchronize pending i/o against a change in the integrity profile to
avoid the possibility of spurious integrity errors.

Cc: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Keith Busch <keith.busch@intel.com>
[keith: also protect dynamic integrity registration]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 4cfc766e07a5ed709a9d5289c8644fe78e9f24de)

Orabug: 25130845
Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c