Joel Stanley | 8d5acef | 2017-03-15 16:24:09 +1030 | [diff] [blame] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Anton Blanchard <anton@samba.org> |
| 3 | Date: Thu, 2 Mar 2017 10:20:30 -0300 |
| 4 | Subject: [PATCH 11/12] scsi: lpfc: Add shutdown method for kexec |
| 5 | |
| 6 | We see lpfc devices regularly fail during kexec. Fix this by adding |
| 7 | a shutdown method which mirrors the remove method. |
| 8 | |
| 9 | ( mfoliveira: this patch has been submitted upstream at: ) |
| 10 | ( http://www.spinics.net/lists/linux-scsi/msg105102.html ) |
| 11 | |
| 12 | Signed-off-by: Anton Blanchard <anton@samba.org> |
| 13 | Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> |
| 14 | Signed-off-by: Joel Stanley <joel@jms.id.au> |
| 15 | --- |
| 16 | drivers/scsi/lpfc/lpfc_init.c | 1 + |
| 17 | 1 file changed, 1 insertion(+) |
| 18 | |
| 19 | diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c |
| 20 | index 4776fd85514f..10f75ad2b9e8 100644 |
| 21 | --- a/drivers/scsi/lpfc/lpfc_init.c |
| 22 | +++ b/drivers/scsi/lpfc/lpfc_init.c |
| 23 | @@ -11447,6 +11447,7 @@ static struct pci_driver lpfc_driver = { |
| 24 | .id_table = lpfc_id_table, |
| 25 | .probe = lpfc_pci_probe_one, |
| 26 | .remove = lpfc_pci_remove_one, |
| 27 | + .shutdown = lpfc_pci_remove_one, |
| 28 | .suspend = lpfc_pci_suspend_one, |
| 29 | .resume = lpfc_pci_resume_one, |
| 30 | .err_handler = &lpfc_err_handler, |
| 31 | -- |
| 32 | 2.11.0 |
| 33 | |