diff options
author | Don Brace <don.brace@microsemi.com> | 2017-10-20 17:51:57 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-25 04:55:20 -0400 |
commit | 9211a07fc1b25d9d437c5ccd39cb1596eb9adb06 (patch) | |
tree | 4935b5dc4cf43669beb2a5d027004c575f4f23fb | |
parent | 2c5fc3639eb4dd21f91770b16d9df8466f42f0b2 (diff) |
scsi: hpsa: reduce warning messages on device removal
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@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>
-rw-r--r-- | drivers/scsi/hpsa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 27a1aca085b3..228d74465fd0 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -1865,11 +1865,13 @@ static void hpsa_wait_for_outstanding_commands_for_dev(struct ctlr_info *h, | |||
1865 | break; | 1865 | break; |
1866 | if (++waits > 20) | 1866 | if (++waits > 20) |
1867 | break; | 1867 | break; |
1868 | msleep(1000); | ||
1869 | } | ||
1870 | |||
1871 | if (waits > 20) | ||
1868 | dev_warn(&h->pdev->dev, | 1872 | dev_warn(&h->pdev->dev, |
1869 | "%s: removing device with %d outstanding commands!\n", | 1873 | "%s: removing device with %d outstanding commands!\n", |
1870 | __func__, cmds); | 1874 | __func__, cmds); |
1871 | msleep(1000); | ||
1872 | } | ||
1873 | } | 1875 | } |
1874 | 1876 | ||
1875 | static void hpsa_remove_device(struct ctlr_info *h, | 1877 | static void hpsa_remove_device(struct ctlr_info *h, |