aio: use cancel_delayed_work_sync()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9fa1cb397f
commit
bf50722a3c
1 changed files with 1 additions and 2 deletions
3
fs/aio.c
3
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;
|
||||
|
|
Loading…
Reference in a new issue