Skip to content

Commit

Permalink
xen-pcifront: don't use flush_scheduled_work()
Browse files Browse the repository at this point in the history
flush_scheduled_work() is scheduled for deprecation.  Cancel ->op_work
directly instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ryan Wilson <hap9@epoch.ncsc.mil>
Cc: Jan Beulich <JBeulich@novell.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  • Loading branch information
Tejun Heo authored and Konrad Rzeszutek Wilk committed Feb 17, 2011
1 parent 85e2efb commit db2e2e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pci/xen-pcifront.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,7 @@ static void free_pdev(struct pcifront_device *pdev)

pcifront_free_roots(pdev);

/*For PCIE_AER error handling job*/
flush_scheduled_work();
cancel_work_sync(&pdev->op_work);

if (pdev->irq >= 0)
unbind_from_irqhandler(pdev->irq, pdev);
Expand Down

0 comments on commit db2e2e6

Please sign in to comment.