Skip to content

Commit

Permalink
cifs: cancel_delayed_work() + flush_scheduled_work() -> cancel_delaye…
Browse files Browse the repository at this point in the history
…d_work_sync()

flush_scheduled_work() is going away.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
htejun authored and Steve French committed Oct 19, 2010
1 parent 89f150f commit 3e24e13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/cifs/cifs_dfs_ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ static void cifs_dfs_expire_automounts(struct work_struct *work)
void cifs_dfs_release_automount_timer(void)
{
BUG_ON(!list_empty(&cifs_dfs_automount_list));
cancel_delayed_work(&cifs_dfs_automount_task);
flush_scheduled_work();
cancel_delayed_work_sync(&cifs_dfs_automount_task);
}

/**
Expand Down

0 comments on commit 3e24e13

Please sign in to comment.