diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 13:28:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 13:28:45 -0500 |
commit | 540a7c5061f10a07748c89b6741af90db1a07252 (patch) | |
tree | 27285b973326f894980e029cb5f726e8865e1443 /drivers/scsi/scsi.c | |
parent | 718749d56214aa97015fe01b76b6d6dd0c171796 (diff) | |
parent | 9c4a6b1e42801343535ccab4c190019d9975cce8 (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull first round of SCSI updates from James Bottomley:
"This is the usual grab bag of driver updates (hpsa, storvsc, mp2sas,
megaraid_sas, ses) plus an assortment of minor updates.
There's also an update to ufs which adds new phy drivers and finally a
new logging infrastructure for SCSI"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (114 commits)
scsi_logging: return void for dev_printk() functions
scsi: print single-character strings with seq_putc
scsi: merge consecutive seq_puts calls
scsi: replace seq_printf with seq_puts
aha152x: replace seq_printf with seq_puts
advansys: replace seq_printf with seq_puts
scsi: remove SPRINTF macro
sg: remove an unused variable
hpsa: Use local workqueues instead of system workqueues
hpsa: add in P840ar controller model name
hpsa: add in gen9 controller model names
hpsa: detect and report failures changing controller transport modes
hpsa: shorten the wait for the CISS doorbell mode change ack
hpsa: refactor duplicated scan completion code into a new routine
hpsa: move SG descriptor set-up out of hpsa_scatter_gather()
hpsa: do not use function pointers in fast path command submission
hpsa: print CDBs instead of kernel virtual addresses for uncommon errors
hpsa: do not use a void pointer for scsi_cmd field of struct CommandList
hpsa: return failed from device reset/abort handlers
hpsa: check for ctlr lockup after command allocation in main io path
...
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 9b3829931f40..c9c3b579eece 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -531,7 +531,7 @@ void scsi_log_send(struct scsi_cmnd *cmd) | |||
531 | * | 531 | * |
532 | * 3: same as 2 | 532 | * 3: same as 2 |
533 | * | 533 | * |
534 | * 4: same as 3 plus dump extra junk | 534 | * 4: same as 3 |
535 | */ | 535 | */ |
536 | if (unlikely(scsi_logging_level)) { | 536 | if (unlikely(scsi_logging_level)) { |
537 | level = SCSI_LOG_LEVEL(SCSI_LOG_MLQUEUE_SHIFT, | 537 | level = SCSI_LOG_LEVEL(SCSI_LOG_MLQUEUE_SHIFT, |
@@ -540,13 +540,6 @@ void scsi_log_send(struct scsi_cmnd *cmd) | |||
540 | scmd_printk(KERN_INFO, cmd, | 540 | scmd_printk(KERN_INFO, cmd, |
541 | "Send: scmd 0x%p\n", cmd); | 541 | "Send: scmd 0x%p\n", cmd); |
542 | scsi_print_command(cmd); | 542 | scsi_print_command(cmd); |
543 | if (level > 3) { | ||
544 | printk(KERN_INFO "buffer = 0x%p, bufflen = %d," | ||
545 | " queuecommand 0x%p\n", | ||
546 | scsi_sglist(cmd), scsi_bufflen(cmd), | ||
547 | cmd->device->host->hostt->queuecommand); | ||
548 | |||
549 | } | ||
550 | } | 543 | } |
551 | } | 544 | } |
552 | } | 545 | } |
@@ -572,7 +565,7 @@ void scsi_log_completion(struct scsi_cmnd *cmd, int disposition) | |||
572 | SCSI_LOG_MLCOMPLETE_BITS); | 565 | SCSI_LOG_MLCOMPLETE_BITS); |
573 | if (((level > 0) && (cmd->result || disposition != SUCCESS)) || | 566 | if (((level > 0) && (cmd->result || disposition != SUCCESS)) || |
574 | (level > 1)) { | 567 | (level > 1)) { |
575 | scsi_print_result(cmd, "Done: ", disposition); | 568 | scsi_print_result(cmd, "Done", disposition); |
576 | scsi_print_command(cmd); | 569 | scsi_print_command(cmd); |
577 | if (status_byte(cmd->result) & CHECK_CONDITION) | 570 | if (status_byte(cmd->result) & CHECK_CONDITION) |
578 | scsi_print_sense(cmd); | 571 | scsi_print_sense(cmd); |