blob: aeee0611bcbe1a696f1938a77988067d9ac42503 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _SCSI_SCSI_REQUEST_H
#define _SCSI_SCSI_REQUEST_H
#include <linux/blk-mq.h>
struct scsi_request {
int result;
unsigned int sense_len;
unsigned int resid_len; /* residual count */
int retries;
void *sense;
};
static inline struct scsi_request *scsi_req(struct request *rq)
{
return blk_mq_rq_to_pdu(rq);
}
#endif /* _SCSI_SCSI_REQUEST_H */
|