aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-21 14:05:45 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-21 14:05:45 -0500
commitd04cdb64212eb5ae6a98026a97dda626e40e8e9a (patch)
treeb6a7dbb21ccfceb915844e9a330b3d3dfcaf3c5b /drivers/scsi/scsi_error.c
parent2f8600dff2b140096a7df781884e918a16aa90e0 (diff)
parentec1248e70edc5cf7b485efcc7b41e44e10f422e5 (diff)
Merge ../linux-2.6
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index f988418d805d..5f0fdfb2618c 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -581,8 +581,7 @@ static int scsi_request_sense(struct scsi_cmnd *scmd)
581 * keep a list of pending commands for final completion, and once we 581 * keep a list of pending commands for final completion, and once we
582 * are ready to leave error handling we handle completion for real. 582 * are ready to leave error handling we handle completion for real.
583 **/ 583 **/
584static void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, 584void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q)
585 struct list_head *done_q)
586{ 585{
587 scmd->device->host->host_failed--; 586 scmd->device->host->host_failed--;
588 scmd->eh_eflags = 0; 587 scmd->eh_eflags = 0;
@@ -594,6 +593,7 @@ static void scsi_eh_finish_cmd(struct scsi_cmnd *scmd,
594 scsi_setup_cmd_retry(scmd); 593 scsi_setup_cmd_retry(scmd);
595 list_move_tail(&scmd->eh_entry, done_q); 594 list_move_tail(&scmd->eh_entry, done_q);
596} 595}
596EXPORT_SYMBOL(scsi_eh_finish_cmd);
597 597
598/** 598/**
599 * scsi_eh_get_sense - Get device sense data. 599 * scsi_eh_get_sense - Get device sense data.
@@ -1422,7 +1422,7 @@ static void scsi_eh_ready_devs(struct Scsi_Host *shost,
1422 * @done_q: list_head of processed commands. 1422 * @done_q: list_head of processed commands.
1423 * 1423 *
1424 **/ 1424 **/
1425static void scsi_eh_flush_done_q(struct list_head *done_q) 1425void scsi_eh_flush_done_q(struct list_head *done_q)
1426{ 1426{
1427 struct scsi_cmnd *scmd, *next; 1427 struct scsi_cmnd *scmd, *next;
1428 1428
@@ -1451,6 +1451,7 @@ static void scsi_eh_flush_done_q(struct list_head *done_q)
1451 } 1451 }
1452 } 1452 }
1453} 1453}
1454EXPORT_SYMBOL(scsi_eh_flush_done_q);
1454 1455
1455/** 1456/**
1456 * scsi_unjam_host - Attempt to fix a host which has a cmd that failed. 1457 * scsi_unjam_host - Attempt to fix a host which has a cmd that failed.