Message ID | 20180523192022.1703-2-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/aio.c b/fs/aio.c index 755d3f57bcc8..1c383bb44b2d 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -639,9 +639,8 @@ static void free_ioctx_users(struct percpu_ref *ref) while (!list_empty(&ctx->active_reqs)) { req = list_first_entry(&ctx->active_reqs, struct aio_kiocb, ki_list); - - list_del_init(&req->ki_list); kiocb_cancel(req); + list_del_init(&req->ki_list); } spin_unlock_irq(&ctx->ctx_lock);