scsi: core: Revert "Make sure that hosts outlive targets"
authorBart Van Assche <bvanassche@acm.org>
Sun, 21 Aug 2022 22:05:01 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Sep 2022 05:02:10 +0000 (01:02 -0400)
commitd94b2d00f7bfa0c555e7b8724b1faa037d57d150
treed146c3bbdb656b363c1e54de2db61e7f5cfaeff0
parent70e8d057bef5367709f4eda15b8d9a40d1b45e90
scsi: core: Revert "Make sure that hosts outlive targets"

Revert the patch series "Call blk_mq_free_tag_set() earlier" because it
introduces a deadlock if the scsi_remove_host() caller holds a reference on
a device, target or host.

Link: https://lore.kernel.org/r/20220821220502.13685-4-bvanassche@acm.org
Fixes: 16728aaba62e ("scsi: core: Make sure that hosts outlive targets")
Reported-by: syzbot+bafeb834708b1bb750bc@syzkaller.appspotmail.com
Tested-by: Kenneth R. Crudup <kenny@panix.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hosts.c
drivers/scsi/scsi_scan.c
include/scsi/scsi_host.h