scsi: core: Revert "Simplify LLD module reference counting"
authorBart Van Assche <bvanassche@acm.org>
Sun, 21 Aug 2022 22:05:00 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Sep 2022 05:02:10 +0000 (01:02 -0400)
commit70e8d057bef5367709f4eda15b8d9a40d1b45e90
tree76a4f54ac584f718830ad3feaa680ce82a0a6ae8
parent2b36209ca8182c5e0221dd416106d434de433d34
scsi: core: Revert "Simplify LLD module reference counting"

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-3-bvanassche@acm.org
Fixes: 1a9283782df2 ("scsi: core: Simplify LLD module reference counting")
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.c
drivers/scsi/scsi_sysfs.c