projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4af2ec
)
io_u: don't attempt to requeue for full residual
author
Jens Axboe
<axboe@kernel.dk>
Mon, 11 Oct 2021 15:49:21 +0000
(09:49 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 11 Oct 2021 15:49:21 +0000
(09:49 -0600)
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>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index 5289b5d1d9c6aa18ccd54f01748f95e9f14a4991..586a4befdce0969e596f9243abc73044b4b75fda 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-2004,7
+2004,7
@@
static void io_completed(struct thread_data *td, struct io_u **io_u_ptr,
* Make sure we notice short IO from here, and requeue them
* appropriately!
*/
- if (io_u->resid) {
+ if (
bytes &&
io_u->resid) {
io_u->xfer_buflen = io_u->resid;
io_u->xfer_buf += bytes;
io_u->offset += bytes;