Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf50722a authored by Al Viro's avatar Al Viro
Browse files

aio: use cancel_delayed_work_sync()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 9fa1cb39
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;