mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-14 10:19:08 +08:00
scsi: core: Extend struct scsi_exec_args
Allow SCSI LLDs to specify SCMD_* flags. Link: https://lore.kernel.org/r/20230210193258.4004923-2-bvanassche@acm.org Cc: Mike Christie <michael.christie@oracle.com> Cc: John Garry <john.g.garry@oracle.com> Reviewed-by: John Garry <john.g.garry@oracle.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
442336a5a9
commit
35cd2f5542
@@ -229,6 +229,7 @@ int scsi_execute_cmd(struct scsi_device *sdev, const unsigned char *cmd,
|
||||
scmd->cmd_len = COMMAND_SIZE(cmd[0]);
|
||||
memcpy(scmd->cmnd, cmd, scmd->cmd_len);
|
||||
scmd->allowed = retries;
|
||||
scmd->flags |= args->scmd_flags;
|
||||
req->timeout = timeout;
|
||||
req->rq_flags |= RQF_QUIET;
|
||||
|
||||
|
||||
@@ -462,6 +462,7 @@ struct scsi_exec_args {
|
||||
unsigned int sense_len; /* sense buffer len */
|
||||
struct scsi_sense_hdr *sshdr; /* decoded sense header */
|
||||
blk_mq_req_flags_t req_flags; /* BLK_MQ_REQ flags */
|
||||
int scmd_flags; /* SCMD flags */
|
||||
int *resid; /* residual length */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user