Skip to content

Commit

Permalink
workqueue: deprecate __cancel_delayed_work()
Browse files Browse the repository at this point in the history
Now that cancel_delayed_work() can be safely called from IRQ handlers,
there's no reason to use __cancel_delayed_work().  Use
cancel_delayed_work() instead of __cancel_delayed_work() and mark the
latter deprecated.

Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Jens Axboe <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Roland Dreier <[email protected]>
Cc: Tomi Valkeinen <[email protected]>
  • Loading branch information
htejun committed Aug 21, 2012
1 parent 57b30ae commit 136b572
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ EXPORT_SYMBOL(blk_start_queue);
**/
void blk_stop_queue(struct request_queue *q)
{
__cancel_delayed_work(&q->delay_work);
cancel_delayed_work(&q->delay_work);
queue_flag_set(QUEUE_FLAG_STOPPED, q);
}
EXPORT_SYMBOL(blk_stop_queue);
Expand Down
2 changes: 1 addition & 1 deletion drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ static void unlock_fdc(void)

raw_cmd = NULL;
command_status = FD_COMMAND_NONE;
__cancel_delayed_work(&fd_timeout);
cancel_delayed_work(&fd_timeout);
do_floppy = NULL;
cont = NULL;
clear_bit(0, &fdc_busy);
Expand Down
2 changes: 1 addition & 1 deletion drivers/infiniband/core/mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ static void adjust_timeout(struct ib_mad_agent_private *mad_agent_priv)
unsigned long delay;

if (list_empty(&mad_agent_priv->wait_list)) {
__cancel_delayed_work(&mad_agent_priv->timed_work);
cancel_delayed_work(&mad_agent_priv->timed_work);
} else {
mad_send_wr = list_entry(mad_agent_priv->wait_list.next,
struct ib_mad_send_wr_private,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4306,7 +4306,7 @@ static void dsi_framedone_irq_callback(void *data, u32 mask)
* and is sending the data.
*/

__cancel_delayed_work(&dsi->framedone_timeout_work);
cancel_delayed_work(&dsi->framedone_timeout_work);

dsi_handle_framedone(dsidev, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ extern unsigned int work_busy(struct work_struct *work);
* if it returns 0 the timer function may be running and the queueing is in
* progress.
*/
static inline bool __cancel_delayed_work(struct delayed_work *work)
static inline bool __deprecated __cancel_delayed_work(struct delayed_work *work)
{
bool ret;

Expand Down

0 comments on commit 136b572

Please sign in to comment.