Skip to content
Permalink
Browse files
core: Remove the request member from struct scsi_cmnd
Since all scsi_cmnd.request users are gone, remove this pointer from
the scsi_cmnd structure.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
  • Loading branch information
bvanassche committed May 14, 2021
1 parent 3cbd2f7 commit 087cdea56c1cf240c2e64d26e9a7c3231a751f14
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
@@ -2390,7 +2390,6 @@ scsi_ioctl_reset(struct scsi_device *dev, int __user *arg)

scmd = (struct scsi_cmnd *)(rq + 1);
scsi_init_command(dev, scmd);
scmd->request = rq;
scmd->cmnd = scsi_req(rq)->cmd;

scmd->scsi_done = scsi_reset_provider_done_command;
@@ -1534,7 +1534,6 @@ static blk_status_t scsi_prepare_cmd(struct request *req)

scsi_init_command(sdev, cmd);

cmd->request = req;
cmd->tag = req->tag;
cmd->prot_op = SCSI_PROT_NORMAL;
if (blk_rq_bytes(req))
@@ -111,9 +111,6 @@ struct scsi_cmnd {
reconnects. Probably == sector
size */

struct request *request; /* The command we are
working on */

unsigned char *sense_buffer;
/* obtained by REQUEST SENSE when
* CHECK CONDITION is received on original

0 comments on commit 087cdea

Please sign in to comment.