diff options
-rw-r--r-- | drivers/scsi/pluto.c | 3 | ||||
-rw-r--r-- | drivers/scsi/scsi_error.c | 3 | ||||
-rw-r--r-- | include/linux/blkdev.h | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/drivers/scsi/pluto.c b/drivers/scsi/pluto.c index 46624ab9c3d2..83a671799934 100644 --- a/drivers/scsi/pluto.c +++ b/drivers/scsi/pluto.c | |||
@@ -27,6 +27,9 @@ | |||
27 | 27 | ||
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | 29 | ||
30 | #define RQ_SCSI_BUSY 0xffff | ||
31 | #define RQ_SCSI_DONE 0xfffe | ||
32 | |||
30 | /* #define PLUTO_DEBUG */ | 33 | /* #define PLUTO_DEBUG */ |
31 | 34 | ||
32 | #define pluto_printk printk ("PLUTO %s: ", fc->name); printk | 35 | #define pluto_printk printk ("PLUTO %s: ", fc->name); printk |
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 471a43102923..1c7d993fa8ad 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -452,7 +452,6 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, int timeout) | |||
452 | (sdev->lun << 5 & 0xe0); | 452 | (sdev->lun << 5 & 0xe0); |
453 | 453 | ||
454 | shost->eh_action = &done; | 454 | shost->eh_action = &done; |
455 | scmd->request->rq_status = RQ_SCSI_BUSY; | ||
456 | 455 | ||
457 | spin_lock_irqsave(shost->host_lock, flags); | 456 | spin_lock_irqsave(shost->host_lock, flags); |
458 | scsi_log_send(scmd); | 457 | scsi_log_send(scmd); |
@@ -461,7 +460,6 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, int timeout) | |||
461 | 460 | ||
462 | timeleft = wait_for_completion_timeout(&done, timeout); | 461 | timeleft = wait_for_completion_timeout(&done, timeout); |
463 | 462 | ||
464 | scmd->request->rq_status = RQ_SCSI_DONE; | ||
465 | shost->eh_action = NULL; | 463 | shost->eh_action = NULL; |
466 | 464 | ||
467 | scsi_log_completion(scmd, SUCCESS); | 465 | scsi_log_completion(scmd, SUCCESS); |
@@ -1657,7 +1655,6 @@ scsi_reset_provider(struct scsi_device *dev, int flag) | |||
1657 | 1655 | ||
1658 | scmd->request = &req; | 1656 | scmd->request = &req; |
1659 | memset(&scmd->eh_timeout, 0, sizeof(scmd->eh_timeout)); | 1657 | memset(&scmd->eh_timeout, 0, sizeof(scmd->eh_timeout)); |
1660 | scmd->request->rq_status = RQ_SCSI_BUSY; | ||
1661 | 1658 | ||
1662 | memset(&scmd->cmnd, '\0', sizeof(scmd->cmnd)); | 1659 | memset(&scmd->cmnd, '\0', sizeof(scmd->cmnd)); |
1663 | 1660 | ||
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 59e1259b1c40..c889c459fd1b 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -439,9 +439,6 @@ struct request_queue | |||
439 | 439 | ||
440 | #define RQ_INACTIVE (-1) | 440 | #define RQ_INACTIVE (-1) |
441 | #define RQ_ACTIVE 1 | 441 | #define RQ_ACTIVE 1 |
442 | #define RQ_SCSI_BUSY 0xffff | ||
443 | #define RQ_SCSI_DONE 0xfffe | ||
444 | #define RQ_SCSI_DISCONNECTING 0xffe0 | ||
445 | 442 | ||
446 | #define QUEUE_FLAG_CLUSTER 0 /* cluster several segments into 1 */ | 443 | #define QUEUE_FLAG_CLUSTER 0 /* cluster several segments into 1 */ |
447 | #define QUEUE_FLAG_QUEUED 1 /* uses generic tag queueing */ | 444 | #define QUEUE_FLAG_QUEUED 1 /* uses generic tag queueing */ |