diff options
author | Tejun Heo <tj@kernel.org> | 2014-03-07 10:24:48 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-03-07 10:24:48 -0500 |
commit | 77fa83cf7478202fac1520ca082ab8f9658d63b4 (patch) | |
tree | 13c4b03a5f416f78ef95396600ec09f30622a7c0 /fs/afs | |
parent | 75ddb38f0901d12831264cd74224598e4d8f528b (diff) |
usb: don't use PREPARE_DELAYED_WORK
PREPARE_[DELAYED_]WORK() are being phased out. They have few users
and a nasty surprise in terms of reentrancy guarantee as workqueue
considers work items to be different if they don't have the same work
function.
usb_hub->init_work is multiplexed with multiple work functions;
however, the work item is never queued while in-flight, so we can
simply use INIT_DELAYED_WORK() before each queueing.
It would probably be best to route this with other related updates
through the workqueue tree.
Lightly tested.
v2: Greg and Alan confirm that the work item is never queued while
in-flight. Simply use INIT_DELAYED_WORK().
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-usb@vger.kernel.org
Diffstat (limited to 'fs/afs')
0 files changed, 0 insertions, 0 deletions