On 6/2/23 09:38, mwilck@xxxxxxxx wrote:
@@ -2910,6 +2904,13 @@ scsi_target_block(struct device *dev) device_block); else device_for_each_child(dev, NULL, target_block); + + /* + * SCSI never enables blk-mq's BLK_MQ_F_BLOCKING flag, + * so blk_mq_wait_quiesce_done() comes down to just synchronize_rcu(). + * Just calling it once is enough. + */ + synchronize_rcu(); } EXPORT_SYMBOL_GPL(scsi_target_block);
The above comment is wrong. See also commit b125bb99559e ("scsi: core: Support setting BLK_MQ_F_BLOCKING"). Bart.