> -----Original Message-----
> From: Dexuan Cui
> Sent: Tuesday, March 6, 2018 10:22 AM
> To: [email protected]; [email protected]; KY Srinivasan 
> <[email protected]>;
> Stephen Hemminger <[email protected]>; [email protected]; 
> [email protected];
> [email protected]
> Cc: [email protected]; [email protected]; 
> Haiyang Zhang
> <[email protected]>; [email protected]; [email protected]; 
> Michael
> Kelley (EOSG) <[email protected]>; Dexuan Cui 
> <[email protected]>; Jack
> Morgenstein <[email protected]>; [email protected]
> Subject: [PATCH v3 3/6] PCI: hv: serialize the present/eject work items
> 
> When we hot-remove the device, we first receive a PCI_EJECT message and
> then receive a PCI_BUS_RELATIONS message with bus_rel->device_count == 0.
> 
> The first message is offloaded to hv_eject_device_work(), and the second
> is offloaded to pci_devices_present_work(). Both the paths can be running
> list_del(&hpdev->list_entry), causing general protection fault, because
> system_wq can run them concurrently.
> 
> The patch eliminates the race condition.
> 
> Signed-off-by: Dexuan Cui <[email protected]>
> Tested-by: Adrian Suhov <[email protected]>
> Tested-by: Chris Valean <[email protected]>
> Cc: Vitaly Kuznetsov <[email protected]>
> Cc: Jack Morgenstein <[email protected]>
> Cc: [email protected]
> Cc: Stephen Hemminger <[email protected]>
> Cc: K. Y. Srinivasan <[email protected]>
> ---
>  drivers/pci/host/pci-hyperv.c | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)
> 

Reviewed-by: Michael Kelley <[email protected]>
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to