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>
This commit is contained in:
parent
2c5fc3639e
commit
9211a07fc1
@ -1865,11 +1865,13 @@ static void hpsa_wait_for_outstanding_commands_for_dev(struct ctlr_info *h,
|
|||||||
break;
|
break;
|
||||||
if (++waits > 20)
|
if (++waits > 20)
|
||||||
break;
|
break;
|
||||||
|
msleep(1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (waits > 20)
|
||||||
dev_warn(&h->pdev->dev,
|
dev_warn(&h->pdev->dev,
|
||||||
"%s: removing device with %d outstanding commands!\n",
|
"%s: removing device with %d outstanding commands!\n",
|
||||||
__func__, cmds);
|
__func__, cmds);
|
||||||
msleep(1000);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hpsa_remove_device(struct ctlr_info *h,
|
static void hpsa_remove_device(struct ctlr_info *h,
|
||||||
|
Loading…
Reference in New Issue
Block a user