Revert "block: remove the blk_flush_integrity call in blk_integrity_unregister"

This reverts commit a5698c3795.
This commit is contained in:
Ksawlii 2024-11-24 00:23:47 +01:00
parent f89c56f5da
commit a34bd6102b

View file

@ -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));
}