From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754000AbcBAL6O (ORCPT ); Mon, 1 Feb 2016 06:58:14 -0500 Received: from prv-mh.provo.novell.com ([137.65.248.74]:40565 "EHLO prv-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753650AbcBAL6M convert rfc822-to-8bit (ORCPT ); Mon, 1 Feb 2016 06:58:12 -0500 Message-Id: <56AF566002000078000CCE71@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Mon, 01 Feb 2016 04:58:08 -0700 From: "Jan Beulich" To: "David Vrabel" , "Boris Ostrovsky" , "Konrad Rzeszutek Wilk" Cc: "xen-devel" , Subject: [PATCH] Xen/PCI: correct notifier used for device removal Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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: