]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Revert "Make sure that targets outlive devices"
authorBart Van Assche <bvanassche@acm.org>
Sun, 21 Aug 2022 22:05:02 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Sep 2022 05:02:10 +0000 (01:02 -0400)
commit2b112c204168529326b035232328912d982252dd
treef76d4ca8cdc0bf5816cb135df358164b0e909519
parent5b9739a4379bd9a9ccb5e4fadfd183c2c3a728d4
scsi: core: Revert "Make sure that targets outlive devices"

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-5-bvanassche@acm.org
Fixes: 410a8140c667 ("scsi: core: Make sure that targets outlive devices")
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/scsi_scan.c
drivers/scsi/scsi_sysfs.c
include/scsi/scsi_device.h