summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
37e974a)
If the io was cancelled, residual is the full data buffer length.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
default:
io_u->error = err;
case ECANCELED:
default:
io_u->error = err;
case ECANCELED:
+ io_u->resid = io_u->xfer_buflen;
case 0:
pd->aio_events[r++] = io_u;
io_u->seen = 1;
case 0:
pd->aio_events[r++] = io_u;
io_u->seen = 1;