[linux-usb-devel] [PATCH] USB: replace flush_workqueue with cancel_sync_work

2007-05-29 Thread Alan Stern
This patch (as912) replaces a couple of calls to flush_workqueue() with cancel_sync_work() and cancel_rearming_delayed_work(). Using a more directed approach allows us to avoid some nasty deadlocks. The prime example occurs when a first-level device (the parent is a root hub) is removed while at

Re: [linux-usb-devel] [PATCH] USB: replace flush_workqueue with cancel_sync_work

2007-05-29 Thread Mark Lord
Thanks again, Alan! From: Alan Stern [EMAIL PROTECTED] This patch (as912) replaces a couple of calls to flush_workqueue() with cancel_sync_work() and cancel_rearming_delayed_work(). Using a more directed approach allows us to avoid some nasty deadlocks. The prime example occurs when a