Just use the sense_buffer field in struct scsi_cmnd for the sense data and move the sense_len field over to struct scsi_cmnd. Link: https://lore.kernel.org/r/20220224175552.988286-5-hch@lst.de Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: John Garry <john.garry@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
19 lines
359 B
C
19 lines
359 B
C
/* 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 resid_len; /* residual count */
|
|
int retries;
|
|
};
|
|
|
|
static inline struct scsi_request *scsi_req(struct request *rq)
|
|
{
|
|
return blk_mq_rq_to_pdu(rq);
|
|
}
|
|
|
|
#endif /* _SCSI_SCSI_REQUEST_H */
|