Lines Matching refs:ret2
723 ssize_t ret, ret2; in io_read() local
810 ret2 = io_setup_async_rw(req, iovec, s, true); in io_read()
812 if (ret2) { in io_read()
813 ret = ret > 0 ? ret : ret2; in io_read()
870 ssize_t ret, ret2; in io_write() local
921 ret2 = call_write_iter(req->file, kiocb, &s->iter); in io_write()
923 ret2 = loop_rw_iter(WRITE, rw, &s->iter); in io_write()
925 ret2 = -EINVAL; in io_write()
929 ret2 = -EAGAIN; in io_write()
936 if (ret2 == -EOPNOTSUPP && (kiocb->ki_flags & IOCB_NOWAIT)) in io_write()
937 ret2 = -EAGAIN; in io_write()
939 if (ret2 == -EAGAIN && (req->flags & REQ_F_NOWAIT)) in io_write()
941 if (!force_nonblock || ret2 != -EAGAIN) { in io_write()
943 if (ret2 == -EAGAIN && (req->ctx->flags & IORING_SETUP_IOPOLL)) in io_write()
946 if (ret2 != req->cqe.res && ret2 >= 0 && need_complete_io(req)) { in io_write()
949 trace_io_uring_short_write(req->ctx, kiocb->ki_pos - ret2, in io_write()
950 req->cqe.res, ret2); in io_write()
962 io->bytes_done += ret2; in io_write()
969 ret = kiocb_done(req, ret2, issue_flags); in io_write()