On 8/14/23 19:01, Damien Le Moal wrote:
On 8/15/23 01:57, Bart Van Assche wrote:
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -4350,6 +4350,7 @@ static void ufshcd_update_preserves_write_order(struct ufs_hba *hba,
blk_mq_freeze_queue_wait(q);
q->limits.driver_preserves_write_order = preserves_write_order;
blk_mq_unfreeze_queue(q);
+ scsi_rescan_device(&sdev->sdev_gendev);
Maybe calling disk_set_zoned() before blk_mq_unfreeze_queue() should be enough ?
rescan/revalidate will be done in case you get a topology change event (or
equivalent), which I think is not the case here.
Hi Damien,
I will look into calling disk_set_zoned() before blk_mq_unfreeze_queue().
Thanks,
Bart.