Revert "block: remove the blk_flush_integrity call in blk_integrity_unregister"
This reverts commit a5698c3795
.
This commit is contained in:
parent
f89c56f5da
commit
a34bd6102b
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,8 @@ void blk_integrity_unregister(struct gendisk *disk)
|
|||
if (!bi->profile)
|
||||
return;
|
||||
|
||||
/* ensure all bios are off the integrity workqueue */
|
||||
blk_flush_integrity();
|
||||
blk_queue_flag_clear(QUEUE_FLAG_STABLE_WRITES, disk->queue);
|
||||
memset(bi, 0, sizeof(*bi));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue