aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-06-22 22:11:56 -0400
committerJeff Garzik <jeff@garzik.org>2006-06-22 22:11:56 -0400
commit71d530cd1b6d97094481002a04c77fea1c8e1c22 (patch)
treee786da7145d83c19a594adf76ed90d52c51058b1 /drivers/scsi/scsi_error.c
parentd7a80dad2fe19a2b8c119c8e9cba605474a75a2b (diff)
parentd588fcbe5a7ba8bba2cebf7799ab2d573717a806 (diff)
Merge branch 'master' into upstream
Conflicts: drivers/scsi/libata-core.c drivers/scsi/libata-scsi.c include/linux/pci_ids.h
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 346ab72ebf86..6a7a60fc0a4e 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -26,13 +26,13 @@
26#include <linux/delay.h> 26#include <linux/delay.h>
27 27
28#include <scsi/scsi.h> 28#include <scsi/scsi.h>
29#include <scsi/scsi_cmnd.h>
29#include <scsi/scsi_dbg.h> 30#include <scsi/scsi_dbg.h>
30#include <scsi/scsi_device.h> 31#include <scsi/scsi_device.h>
31#include <scsi/scsi_eh.h> 32#include <scsi/scsi_eh.h>
32#include <scsi/scsi_transport.h> 33#include <scsi/scsi_transport.h>
33#include <scsi/scsi_host.h> 34#include <scsi/scsi_host.h>
34#include <scsi/scsi_ioctl.h> 35#include <scsi/scsi_ioctl.h>
35#include <scsi/scsi_request.h>
36 36
37#include "scsi_priv.h" 37#include "scsi_priv.h"
38#include "scsi_logging.h" 38#include "scsi_logging.h"
@@ -474,7 +474,6 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, int timeout)
474 (sdev->lun << 5 & 0xe0); 474 (sdev->lun << 5 & 0xe0);
475 475
476 shost->eh_action = &done; 476 shost->eh_action = &done;
477 scmd->request->rq_status = RQ_SCSI_BUSY;
478 477
479 spin_lock_irqsave(shost->host_lock, flags); 478 spin_lock_irqsave(shost->host_lock, flags);
480 scsi_log_send(scmd); 479 scsi_log_send(scmd);
@@ -483,7 +482,6 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, int timeout)
483 482
484 timeleft = wait_for_completion_timeout(&done, timeout); 483 timeleft = wait_for_completion_timeout(&done, timeout);
485 484
486 scmd->request->rq_status = RQ_SCSI_DONE;
487 shost->eh_action = NULL; 485 shost->eh_action = NULL;
488 486
489 scsi_log_completion(scmd, SUCCESS); 487 scsi_log_completion(scmd, SUCCESS);
@@ -1679,7 +1677,6 @@ scsi_reset_provider(struct scsi_device *dev, int flag)
1679 1677
1680 scmd->request = &req; 1678 scmd->request = &req;
1681 memset(&scmd->eh_timeout, 0, sizeof(scmd->eh_timeout)); 1679 memset(&scmd->eh_timeout, 0, sizeof(scmd->eh_timeout));
1682 scmd->request->rq_status = RQ_SCSI_BUSY;
1683 1680
1684 memset(&scmd->cmnd, '\0', sizeof(scmd->cmnd)); 1681 memset(&scmd->cmnd, '\0', sizeof(scmd->cmnd));
1685 1682
@@ -1693,8 +1690,6 @@ scsi_reset_provider(struct scsi_device *dev, int flag)
1693 scmd->cmd_len = 0; 1690 scmd->cmd_len = 0;
1694 1691
1695 scmd->sc_data_direction = DMA_BIDIRECTIONAL; 1692 scmd->sc_data_direction = DMA_BIDIRECTIONAL;
1696 scmd->sc_request = NULL;
1697 scmd->sc_magic = SCSI_CMND_MAGIC;
1698 1693
1699 init_timer(&scmd->eh_timeout); 1694 init_timer(&scmd->eh_timeout);
1700 1695
@@ -1791,14 +1786,6 @@ int scsi_normalize_sense(const u8 *sense_buffer, int sb_len,
1791} 1786}
1792EXPORT_SYMBOL(scsi_normalize_sense); 1787EXPORT_SYMBOL(scsi_normalize_sense);
1793 1788
1794int scsi_request_normalize_sense(struct scsi_request *sreq,
1795 struct scsi_sense_hdr *sshdr)
1796{
1797 return scsi_normalize_sense(sreq->sr_sense_buffer,
1798 sizeof(sreq->sr_sense_buffer), sshdr);
1799}
1800EXPORT_SYMBOL(scsi_request_normalize_sense);
1801
1802int scsi_command_normalize_sense(struct scsi_cmnd *cmd, 1789int scsi_command_normalize_sense(struct scsi_cmnd *cmd,
1803 struct scsi_sense_hdr *sshdr) 1790 struct scsi_sense_hdr *sshdr)
1804{ 1791{