diff options
author | Hannes Reinecke <hare@suse.de> | 2014-10-24 08:26:58 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:16:04 -0500 |
commit | 1fa6b5fbba8c7d4d0cbc428efc4838b813046420 (patch) | |
tree | 9a5b12b11f97e27137fba560cf83540a70a9938b /drivers/scsi | |
parent | a9a47bf58ac1d5525ae99922e055d8de87eeae78 (diff) |
scsi: Remove scsi_print_command when calling abort
Calling scsi_print_command should not be necessary during abort;
if the information is required one should enable scsi logging.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/53c700.c | 4 | ||||
-rw-r--r-- | drivers/scsi/NCR5380.c | 5 | ||||
-rw-r--r-- | drivers/scsi/arm/fas216.c | 10 | ||||
-rw-r--r-- | drivers/scsi/atari_NCR5380.c | 3 | ||||
-rw-r--r-- | drivers/scsi/ps3rom.c | 4 | ||||
-rw-r--r-- | drivers/scsi/stex.c | 9 | ||||
-rw-r--r-- | drivers/scsi/sun3_NCR5380.c | 3 |
7 files changed, 11 insertions, 27 deletions
diff --git a/drivers/scsi/53c700.c b/drivers/scsi/53c700.c index 179a24ec7561..474cc6dc98e2 100644 --- a/drivers/scsi/53c700.c +++ b/drivers/scsi/53c700.c | |||
@@ -1906,9 +1906,7 @@ NCR_700_abort(struct scsi_cmnd * SCp) | |||
1906 | { | 1906 | { |
1907 | struct NCR_700_command_slot *slot; | 1907 | struct NCR_700_command_slot *slot; |
1908 | 1908 | ||
1909 | scmd_printk(KERN_INFO, SCp, | 1909 | scmd_printk(KERN_INFO, SCp, "abort command\n"); |
1910 | "New error handler wants to abort command\n\t"); | ||
1911 | scsi_print_command(SCp); | ||
1912 | 1910 | ||
1913 | slot = (struct NCR_700_command_slot *)SCp->host_scribble; | 1911 | slot = (struct NCR_700_command_slot *)SCp->host_scribble; |
1914 | 1912 | ||
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 45da3c823322..50873bb6b7ee 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c | |||
@@ -2666,9 +2666,8 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) { | |||
2666 | struct Scsi_Host *instance = cmd->device->host; | 2666 | struct Scsi_Host *instance = cmd->device->host; |
2667 | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; | 2667 | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
2668 | Scsi_Cmnd *tmp, **prev; | 2668 | Scsi_Cmnd *tmp, **prev; |
2669 | 2669 | ||
2670 | printk(KERN_WARNING "scsi%d : aborting command\n", instance->host_no); | 2670 | scmd_printk(KERN_WARNING, cmd, "aborting command\n"); |
2671 | scsi_print_command(cmd); | ||
2672 | 2671 | ||
2673 | NCR5380_print_status(instance); | 2672 | NCR5380_print_status(instance); |
2674 | 2673 | ||
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index d2581cb41ec8..e64c3af7c1a0 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c | |||
@@ -2423,14 +2423,11 @@ int fas216_eh_abort(struct scsi_cmnd *SCpnt) | |||
2423 | 2423 | ||
2424 | info->stats.aborts += 1; | 2424 | info->stats.aborts += 1; |
2425 | 2425 | ||
2426 | printk(KERN_WARNING "scsi%d: abort command ", info->host->host_no); | 2426 | scmd_printk(KERN_WARNING, SCpnt, "abort command\n"); |
2427 | __scsi_print_command(SCpnt->cmnd, SCpnt->cmd_len); | ||
2428 | 2427 | ||
2429 | print_debug_list(); | 2428 | print_debug_list(); |
2430 | fas216_dumpstate(info); | 2429 | fas216_dumpstate(info); |
2431 | 2430 | ||
2432 | printk(KERN_WARNING "scsi%d: abort %p ", info->host->host_no, SCpnt); | ||
2433 | |||
2434 | switch (fas216_find_command(info, SCpnt)) { | 2431 | switch (fas216_find_command(info, SCpnt)) { |
2435 | /* | 2432 | /* |
2436 | * We found the command, and cleared it out. Either | 2433 | * We found the command, and cleared it out. Either |
@@ -2438,7 +2435,7 @@ int fas216_eh_abort(struct scsi_cmnd *SCpnt) | |||
2438 | * target, or the busylun bit is not set. | 2435 | * target, or the busylun bit is not set. |
2439 | */ | 2436 | */ |
2440 | case res_success: | 2437 | case res_success: |
2441 | printk("success\n"); | 2438 | scmd_printk(KERN_WARNING, SCpnt, "abort %p success\n", SCpnt); |
2442 | result = SUCCESS; | 2439 | result = SUCCESS; |
2443 | break; | 2440 | break; |
2444 | 2441 | ||
@@ -2448,14 +2445,13 @@ int fas216_eh_abort(struct scsi_cmnd *SCpnt) | |||
2448 | * if the bus is free. | 2445 | * if the bus is free. |
2449 | */ | 2446 | */ |
2450 | case res_hw_abort: | 2447 | case res_hw_abort: |
2451 | |||
2452 | 2448 | ||
2453 | /* | 2449 | /* |
2454 | * We are unable to abort the command for some reason. | 2450 | * We are unable to abort the command for some reason. |
2455 | */ | 2451 | */ |
2456 | default: | 2452 | default: |
2457 | case res_failed: | 2453 | case res_failed: |
2458 | printk("failed\n"); | 2454 | scmd_printk(KERN_WARNING, SCpnt, "abort %p failed\n", SCpnt); |
2459 | break; | 2455 | break; |
2460 | } | 2456 | } |
2461 | 2457 | ||
diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c index 79e6f045c2a9..229c61bfbc6b 100644 --- a/drivers/scsi/atari_NCR5380.c +++ b/drivers/scsi/atari_NCR5380.c | |||
@@ -2623,8 +2623,7 @@ int NCR5380_abort(Scsi_Cmnd *cmd) | |||
2623 | Scsi_Cmnd *tmp, **prev; | 2623 | Scsi_Cmnd *tmp, **prev; |
2624 | unsigned long flags; | 2624 | unsigned long flags; |
2625 | 2625 | ||
2626 | printk(KERN_NOTICE "scsi%d: aborting command\n", HOSTNO); | 2626 | scmd_printk(KERN_NOTICE, cmd, "aborting command\n"); |
2627 | scsi_print_command(cmd); | ||
2628 | 2627 | ||
2629 | NCR5380_print_status(instance); | 2628 | NCR5380_print_status(instance); |
2630 | 2629 | ||
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index ef23fabe3924..b3b48b5a984c 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c | |||
@@ -220,10 +220,6 @@ static int ps3rom_queuecommand_lck(struct scsi_cmnd *cmd, | |||
220 | unsigned char opcode; | 220 | unsigned char opcode; |
221 | int res; | 221 | int res; |
222 | 222 | ||
223 | #ifdef DEBUG | ||
224 | scsi_print_command(cmd); | ||
225 | #endif | ||
226 | |||
227 | priv->curr_cmd = cmd; | 223 | priv->curr_cmd = cmd; |
228 | cmd->scsi_done = done; | 224 | cmd->scsi_done = done; |
229 | 225 | ||
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index 1aa4befcfbd0..713af13b858e 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c | |||
@@ -1162,9 +1162,7 @@ static int stex_abort(struct scsi_cmnd *cmd) | |||
1162 | int result = SUCCESS; | 1162 | int result = SUCCESS; |
1163 | unsigned long flags; | 1163 | unsigned long flags; |
1164 | 1164 | ||
1165 | printk(KERN_INFO DRV_NAME | 1165 | scmd_printk(KERN_INFO, cmd, "aborting command\n"); |
1166 | "(%s): aborting command\n", pci_name(hba->pdev)); | ||
1167 | scsi_print_command(cmd); | ||
1168 | 1166 | ||
1169 | base = hba->mmio_base; | 1167 | base = hba->mmio_base; |
1170 | spin_lock_irqsave(host->host_lock, flags); | 1168 | spin_lock_irqsave(host->host_lock, flags); |
@@ -1352,9 +1350,8 @@ static int stex_reset(struct scsi_cmnd *cmd) | |||
1352 | 1350 | ||
1353 | hba = (struct st_hba *) &cmd->device->host->hostdata[0]; | 1351 | hba = (struct st_hba *) &cmd->device->host->hostdata[0]; |
1354 | 1352 | ||
1355 | printk(KERN_INFO DRV_NAME | 1353 | shost_printk(KERN_INFO, cmd->device->host, |
1356 | "(%s): resetting host\n", pci_name(hba->pdev)); | 1354 | "resetting host\n"); |
1357 | scsi_print_command(cmd); | ||
1358 | 1355 | ||
1359 | return stex_do_reset(hba) ? FAILED : SUCCESS; | 1356 | return stex_do_reset(hba) ? FAILED : SUCCESS; |
1360 | } | 1357 | } |
diff --git a/drivers/scsi/sun3_NCR5380.c b/drivers/scsi/sun3_NCR5380.c index 1a2367a1b1f2..3abd796b9893 100644 --- a/drivers/scsi/sun3_NCR5380.c +++ b/drivers/scsi/sun3_NCR5380.c | |||
@@ -2608,8 +2608,7 @@ static int NCR5380_abort(struct scsi_cmnd *cmd) | |||
2608 | struct scsi_cmnd *tmp, **prev; | 2608 | struct scsi_cmnd *tmp, **prev; |
2609 | unsigned long flags; | 2609 | unsigned long flags; |
2610 | 2610 | ||
2611 | printk(KERN_NOTICE "scsi%d: aborting command\n", HOSTNO); | 2611 | scmd_printk(KERN_NOTICE, cmd, "aborting command\n"); |
2612 | scsi_print_command(cmd); | ||
2613 | 2612 | ||
2614 | NCR5380_print_status (instance); | 2613 | NCR5380_print_status (instance); |
2615 | 2614 | ||