From: Al Viro Date: Sun, 11 Mar 2012 05:58:40 +0000 (-0500) Subject: aio: use cancel_delayed_work_sync() X-Git-Tag: firefly_0821_release~3680^2~3324^2~43 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf50722a3c4a83aae651dc20b708308a4f119eb9;p=firefly-linux-kernel-4.4.55.git aio: use cancel_delayed_work_sync() Signed-off-by: Al Viro --- diff --git a/fs/aio.c b/fs/aio.c index 9c3de88e2ead..a92d7547b6f6 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -211,8 +211,7 @@ static void __put_ioctx(struct kioctx *ctx) unsigned nr_events = ctx->max_reqs; BUG_ON(ctx->reqs_active); - cancel_delayed_work(&ctx->wq); - cancel_work_sync(&ctx->wq.work); + cancel_delayed_work_sync(&ctx->wq); aio_free_ring(ctx); mmdrop(ctx->mm); ctx->mm = NULL;