mirror of
https://github.com/torvalds/linux.git
synced 2024-10-23 13:40:56 +00:00
scsi: qedi: Use QEDI_MODE_NORMAL for error handling
When handling errors that lead to host removal use QEDI_MODE_NORMAL. There is currently no difference in behavior between NORMAL and SHUTDOWN, but in a subsequent commit we will want to know when we are called from the pci_driver shutdown callout vs remove/err_handler so we know when userspace is up. Link: https://lore.kernel.org/r/20220616222738.5722-6-michael.christie@oracle.com Tested-by: Nilesh Javali <njavali@marvell.com> Reviewed-by: Lee Duncan <lduncan@suse.com> Reviewed-by: Nilesh Javali <njavali@marvell.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
bb42856bfd
commit
7bf01eb0d4
|
@ -2491,7 +2491,7 @@ static void qedi_board_disable_work(struct work_struct *work)
|
|||
if (test_and_set_bit(QEDI_IN_SHUTDOWN, &qedi->flags))
|
||||
return;
|
||||
|
||||
__qedi_remove(qedi->pdev, QEDI_MODE_SHUTDOWN);
|
||||
__qedi_remove(qedi->pdev, QEDI_MODE_NORMAL);
|
||||
}
|
||||
|
||||
static void qedi_shutdown(struct pci_dev *pdev)
|
||||
|
|
Loading…
Reference in New Issue
Block a user