Run the LinuxKPI PCI shutdown handler free of the Giant mutex.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2016-03-07 14:35:31 +00:00
parent fd07a29ced
commit cb19abd277

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2015 Mellanox Technologies, Ltd.
* Copyright (c) 2015-2016 Mellanox Technologies, Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -209,8 +209,11 @@ linux_pci_shutdown(device_t dev)
struct pci_dev *pdev;
pdev = device_get_softc(dev);
if (pdev->pdrv->shutdown != NULL)
if (pdev->pdrv->shutdown != NULL) {
DROP_GIANT();
pdev->pdrv->shutdown(pdev);
PICKUP_GIANT();
}
return (0);
}