If we get zero bytes transferred, then don't attempt to re-set the
io_u and requeue the IO. That's a fatal condition for this IO.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
* Make sure we notice short IO from here, and requeue them
* appropriately!
*/
* Make sure we notice short IO from here, and requeue them
* appropriately!
*/
+ if (bytes && io_u->resid) {
io_u->xfer_buflen = io_u->resid;
io_u->xfer_buf += bytes;
io_u->offset += bytes;
io_u->xfer_buflen = io_u->resid;
io_u->xfer_buf += bytes;
io_u->offset += bytes;