On Mon, Jul 17, 2023 at 01:52:15PM -0700, Bart Van Assche wrote: > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -329,6 +329,9 @@ static void scsi_single_lun_run(struct scsi_device *current_sdev) > starget->starget_sdev_user = NULL; > spin_unlock_irqrestore(shost->host_lock, flags); > > + /* Combining BLIST_SINGLELUN with BLK_MQ_F_BLOCKING is not supported. */ > + WARN_ON_ONCE(shost->tag_set.flags & BLK_MQ_F_BLOCKING); .. but it must work. BLIST_SINGLELUN is set for specific targets based on the identification string while BLK_MQ_F_BLOCKING is set by the LLDD. Also the blist flags can be set from userspace through /proc/scsi/device_info.