Skip to content

Commit

Permalink
ncpfs: don't use flush_scheduled_work()
Browse files Browse the repository at this point in the history
flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush the used works on stop instead.

Signed-off-by: Tejun Heo <[email protected]>
Cc: Petr Vandrovec <[email protected]>
  • Loading branch information
htejun committed Dec 24, 2010
1 parent f094cfc commit 5d8e4bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fs/ncpfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ static void ncp_stop_tasks(struct ncp_server *server) {
sk->sk_write_space = server->write_space;
release_sock(sk);
del_timer_sync(&server->timeout_tm);
flush_scheduled_work();

flush_work_sync(&server->rcv.tq);
if (sk->sk_socket->type == SOCK_STREAM)
flush_work_sync(&server->tx.tq);
else
flush_work_sync(&server->timeout_tq);
}

static int ncp_show_options(struct seq_file *seq, struct vfsmount *mnt)
Expand Down

0 comments on commit 5d8e4bd

Please sign in to comment.