|
@@ -2035,6 +2035,7 @@ static int nvme_revalidate_disk(struct gendisk *disk)
|
|
|
pi_type = ns->ms == sizeof(struct t10_pi_tuple) ?
|
|
|
id->dps & NVME_NS_DPS_PI_MASK : 0;
|
|
|
|
|
|
+ blk_mq_freeze_queue(disk->queue);
|
|
|
if (blk_get_integrity(disk) && (ns->pi_type != pi_type ||
|
|
|
ns->ms != old_ms ||
|
|
|
bs != queue_logical_block_size(disk->queue) ||
|
|
@@ -2054,6 +2055,7 @@ static int nvme_revalidate_disk(struct gendisk *disk)
|
|
|
|
|
|
if (dev->oncs & NVME_CTRL_ONCS_DSM)
|
|
|
nvme_config_discard(ns);
|
|
|
+ blk_mq_unfreeze_queue(disk->queue);
|
|
|
|
|
|
kfree(id);
|
|
|
return 0;
|