1 #ifndef _SCSI_SCSI_REQUEST_H
2 #define _SCSI_SCSI_REQUEST_H
4 #include <linux/blk-mq.h>
9 unsigned char __cmd
[BLK_MAX_CDB
];
11 unsigned short cmd_len
;
13 unsigned int sense_len
;
14 unsigned int resid_len
; /* residual count */
19 static inline struct scsi_request
*scsi_req(struct request
*rq
)
21 return blk_mq_rq_to_pdu(rq
);
24 static inline void scsi_req_free_cmd(struct scsi_request
*req
)
26 if (req
->cmd
!= req
->__cmd
)
30 void scsi_req_init(struct scsi_request
*req
);
32 #endif /* _SCSI_SCSI_REQUEST_H */