public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Xen/PCI: correct notifier used for device removal
@ 2016-02-01 11:58 Jan Beulich
  2016-02-01 12:01 ` David Vrabel
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2016-02-01 11:58 UTC (permalink / raw)
  To: David Vrabel, Boris Ostrovsky, Konrad Rzeszutek Wilk
  Cc: xen-devel, linux-kernel

Commit 599bad38cf added BUS_NOTIFY_REMOVED_DEVICE in order to allow
avoiding removal of IOMMU mappings before the driver actually got
unbound from the device. Naturally we should be using this too.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 drivers/xen/pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 4.5-rc2/drivers/xen/pci.c
+++ 4.5-rc2-xen-PCI-remove-notifier/drivers/xen/pci.c
@@ -185,7 +185,7 @@ static int xen_pci_notifier(struct notif
 	case BUS_NOTIFY_ADD_DEVICE:
 		r = xen_add_device(dev);
 		break;
-	case BUS_NOTIFY_DEL_DEVICE:
+	case BUS_NOTIFY_REMOVED_DEVICE:
 		r = xen_remove_device(dev);
 		break;
 	default:

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-01 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 11:58 [PATCH] Xen/PCI: correct notifier used for device removal Jan Beulich
2016-02-01 12:01 ` David Vrabel
2016-02-01 12:16   ` Jan Beulich
2016-02-01 13:03     ` David Vrabel
2016-02-01 13:08       ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox