> -----Original Message-----
> From: Christoph Hellwig [mailto:[email protected]]
> Sent: Thursday, October 27, 2016 10:19 AM
> To: Don Brace
> Cc: [email protected]; John Hall; Kevin Barnett; Mahesh
> Rajashekhara; [email protected]; Scott Teel; Viswas G; Justin Lindley; Scott
> Benesh; [email protected]; [email protected]; [email protected]
> Subject: Re: [PATCH 1/4] hpsa: correct lockup detector pci_disable_device
> 
> EXTERNAL EMAIL
> 
> 
> > -     pci_disable_device(h->pdev);
> > +     if (pci_is_enabled(h->pdev))
> > +             pci_disable_device(h->pdev);
> >       fail_all_outstanding_cmds(h);
> 
> Humm.  How can this even happen when the device isn't enabled?

controller_lockup_detected can be called multiple times, especially when I am
exercising the reset handler and abort handler, so I wanted to avoid the kernel
warning messages.

fail_all_outstanding_commands is called with status CMD_CTLR_LOCKUP
and complete_scsi_command returns DID_NO_CONNECT.

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to