]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: hpsa: remove printing internal cdb on tag collision
authorDon Brace <don.brace@microsemi.com>
Wed, 24 Jul 2019 22:08:12 +0000 (17:08 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jul 2019 16:40:36 +0000 (12:40 -0400)
Remove racy printing of internal commands. Completion thread can be
cleaning up the command in parallel.

Reviewed-by: Bader Ali - Saleh <bader.alisaleh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c

index 89e71ebc5964510d4e607a68321ad92dbb9cd5a5..bba099e532664aae8a87924216905012e432b2ea 100644 (file)
@@ -6091,8 +6091,6 @@ static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h,
                if (idx != h->last_collision_tag) { /* Print once per tag */
                        dev_warn(&h->pdev->dev,
                                "%s: tag collision (tag=%d)\n", __func__, idx);
-                       if (c->scsi_cmd != NULL)
-                               scsi_print_command(c->scsi_cmd);
                        if (scmd)
                                scsi_print_command(scmd);
                        h->last_collision_tag = idx;