On Mon, Jun 07, 2021 at 09:46:56AM -0700, Bart Van Assche wrote: > In case you would not yet have had the time to do this, please take a > look at the call trace available on > https://lore.kernel.org/linux-block/20210425043020.30065-1-bvanassche@xxxxxxx/. > That call trace shows how bio_add_pc_page() is called by the SCSI core > before alloc_disk() is called. I think that sending a SCSI command > before alloc_disk() is called is fundamental in the SCSI core because > the SCSI INQUIRY command has to be sent before it is known whether or > not a SCSI LUN represents a disk. I have a plan for that as well, stay tuned :)