]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: core: Only call scsi_host_busy() after the SCSI host has been added
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Jan 2026 20:51:01 +0000 (12:51 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 12 Jan 2026 03:07:36 +0000 (22:07 -0500)
commit202d5dadd3a0fada6aa756c9fdeb2062aad89f79
tree20f59baaa60edba56ab59becf4e316bbea0639be
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
scsi: ufs: core: Only call scsi_host_busy() after the SCSI host has been added

scsi_host_busy() iterates over the host tag set. The host tag set is
initialized by scsi_mq_setup_tags(). The latter function is called by
scsi_add_host(). Hence only call scsi_host_busy() after the SCSI host
has been added. This patch prepares for reverting commit a0b7780602b1
("scsi: core: Fix a regression triggered by scsi_host_busy()").

Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260109205104.496478-2-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c