Commit bf50722a authored by Al Viro's avatar Al Viro

aio: use cancel_delayed_work_sync()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 9fa1cb39
...@@ -211,8 +211,7 @@ static void __put_ioctx(struct kioctx *ctx) ...@@ -211,8 +211,7 @@ static void __put_ioctx(struct kioctx *ctx)
unsigned nr_events = ctx->max_reqs; unsigned nr_events = ctx->max_reqs;
BUG_ON(ctx->reqs_active); BUG_ON(ctx->reqs_active);
cancel_delayed_work(&ctx->wq); cancel_delayed_work_sync(&ctx->wq);
cancel_work_sync(&ctx->wq.work);
aio_free_ring(ctx); aio_free_ring(ctx);
mmdrop(ctx->mm); mmdrop(ctx->mm);
ctx->mm = NULL; ctx->mm = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment