On Mon, Sep 24, 2018 at 9:36 AM Suganath Prabu S
<[email protected]> wrote:
>
> * Driver uses "pci_device_is_present" to check whether
> If Hot unplugged:
> the outstanding IOs with 'DID_NO_CONNECT' before removing the drives
> attached to the HBA.
> "DID_NO_CONNECT" status and free the smid, if driver detects that
> HBA is hot unplugged.
>
> * In the hard reset flush out all the outstanding IOs even if diag reset
> fails and also if driver detects that HBA is hot unplugged.
> + if (!mpt3sas_base_pci_device_is_available(ioc)) {
> + pr_err(MPT3SAS_FMT
> + "%s: pci error recovery reset or"
> + " pci device unplug occurred\n",
This should be just one line.
> + ioc->name, __func__);
> + return;
> + }
--
With Best Regards,
Andy Shevchenko