All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen-pcifront: don't use flush_scheduled_work()
@ 2011-01-24 14:43 Tejun Heo
  2011-01-24 15:39 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2011-01-24 14:43 UTC (permalink / raw)
  To: Ryan Wilson, Konrad Rzeszutek Wilk, Jan Beulich, Jesse Barnes
  Cc: linux-kernel, linux-pci

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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Jan Beulich <JBeulich@novell.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/pci/xen-pcifront.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: work/drivers/pci/xen-pcifront.c
===================================================================
--- work.orig/drivers/pci/xen-pcifront.c
+++ work/drivers/pci/xen-pcifront.c
@@ -733,8 +733,7 @@ static void free_pdev(struct pcifront_de
 
 	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);

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

end of thread, other threads:[~2011-01-24 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-24 14:43 [PATCH] xen-pcifront: don't use flush_scheduled_work() Tejun Heo
2011-01-24 15:39 ` Konrad Rzeszutek Wilk
2011-01-24 15:51   ` Tejun Heo
2011-01-24 15:52   ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.