Commit 7b6f3552 authored by Benjamin LaHaise's avatar Benjamin LaHaise

queue descriptor io errors instead of returning them from io_submit

parent eca473bb
...@@ -1075,10 +1075,8 @@ static int io_submit_one(struct kioctx *ctx, struct iocb *user_iocb, ...@@ -1075,10 +1075,8 @@ static int io_submit_one(struct kioctx *ctx, struct iocb *user_iocb,
if (likely(-EIOCBQUEUED == ret)) if (likely(-EIOCBQUEUED == ret))
return 0; return 0;
if (ret >= 0) { aio_complete(req, ret, 0);
aio_complete(req, ret, 0); return 0;
return 0;
}
out_put_req: out_put_req:
aio_put_req(req); aio_put_req(req);
......
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