Thread (33 messages) 33 messages, 3 authors, 2023-08-16

Re: [PATCH v8 1/9] block: Introduce more member variables related to zone write locking

From: Bart Van Assche <bvanassche@acm.org>
Date: 2023-08-15 16:07:30
Also in: linux-scsi

On 8/14/23 19:01, Damien Le Moal wrote:
On 8/15/23 01:57, Bart Van Assche wrote:
quoted
--- 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help