On 5/1/20 2:01 PM, John Garry wrote:
On 30/04/2020 14:18, Hannes Reinecke wrote:
+ rq = blk_mq_alloc_request(sdev->request_queue,
+ data_direction == DMA_TO_DEVICE ?
+ REQ_OP_SCSI_OUT : REQ_OP_SCSI_IN | REQ_NOWAIT,
+ BLK_MQ_REQ_RESERVED);
+ if (IS_ERR(rq))
+ return NULL;
+ scmd = blk_mq_rq_to_pdu(rq);
+ scmd->request = rq;
Should we just set scmd->device = sdev also for completeness?
Inded, we should.
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer