diff options
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 5add683804e5..b25e5e531eb9 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -260,7 +260,6 @@ struct scsi_cmnd *scsi_get_command(struct scsi_device *dev, int gfp_mask) | |||
260 | memset(cmd, 0, sizeof(*cmd)); | 260 | memset(cmd, 0, sizeof(*cmd)); |
261 | cmd->device = dev; | 261 | cmd->device = dev; |
262 | cmd->state = SCSI_STATE_UNUSED; | 262 | cmd->state = SCSI_STATE_UNUSED; |
263 | cmd->owner = SCSI_OWNER_NOBODY; | ||
264 | init_timer(&cmd->eh_timeout); | 263 | init_timer(&cmd->eh_timeout); |
265 | INIT_LIST_HEAD(&cmd->list); | 264 | INIT_LIST_HEAD(&cmd->list); |
266 | spin_lock_irqsave(&dev->list_lock, flags); | 265 | spin_lock_irqsave(&dev->list_lock, flags); |
@@ -612,7 +611,6 @@ int scsi_dispatch_cmd(struct scsi_cmnd *cmd) | |||
612 | */ | 611 | */ |
613 | 612 | ||
614 | cmd->state = SCSI_STATE_QUEUED; | 613 | cmd->state = SCSI_STATE_QUEUED; |
615 | cmd->owner = SCSI_OWNER_LOWLEVEL; | ||
616 | 614 | ||
617 | atomic_inc(&cmd->device->iorequest_cnt); | 615 | atomic_inc(&cmd->device->iorequest_cnt); |
618 | 616 | ||
@@ -683,7 +681,6 @@ void scsi_init_cmd_from_req(struct scsi_cmnd *cmd, struct scsi_request *sreq) | |||
683 | { | 681 | { |
684 | sreq->sr_command = cmd; | 682 | sreq->sr_command = cmd; |
685 | 683 | ||
686 | cmd->owner = SCSI_OWNER_MIDLEVEL; | ||
687 | cmd->cmd_len = sreq->sr_cmd_len; | 684 | cmd->cmd_len = sreq->sr_cmd_len; |
688 | cmd->use_sg = sreq->sr_use_sg; | 685 | cmd->use_sg = sreq->sr_use_sg; |
689 | 686 | ||
@@ -768,7 +765,6 @@ void __scsi_done(struct scsi_cmnd *cmd) | |||
768 | */ | 765 | */ |
769 | cmd->serial_number = 0; | 766 | cmd->serial_number = 0; |
770 | cmd->state = SCSI_STATE_BHQUEUE; | 767 | cmd->state = SCSI_STATE_BHQUEUE; |
771 | cmd->owner = SCSI_OWNER_BH_HANDLER; | ||
772 | 768 | ||
773 | atomic_inc(&cmd->device->iodone_cnt); | 769 | atomic_inc(&cmd->device->iodone_cnt); |
774 | if (cmd->result) | 770 | if (cmd->result) |
@@ -889,7 +885,6 @@ void scsi_finish_command(struct scsi_cmnd *cmd) | |||
889 | SCSI_LOG_MLCOMPLETE(4, printk("Notifying upper driver of completion " | 885 | SCSI_LOG_MLCOMPLETE(4, printk("Notifying upper driver of completion " |
890 | "for device %d %x\n", sdev->id, cmd->result)); | 886 | "for device %d %x\n", sdev->id, cmd->result)); |
891 | 887 | ||
892 | cmd->owner = SCSI_OWNER_HIGHLEVEL; | ||
893 | cmd->state = SCSI_STATE_FINISHED; | 888 | cmd->state = SCSI_STATE_FINISHED; |
894 | 889 | ||
895 | /* | 890 | /* |