commit | 6040dabcaaf29ecea9c68735a4d3a6ad6411f573 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Oct 24 19:38:15 2006 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Oct 24 19:38:15 2006 +0200 |
tree | f916940177ac9e5560f1475797a9186d269714c0 | |
parent | b50b87559205b4758deba7c547ab07bf6f2e8ff8 [diff] [blame] |
[PATCH] Make ->buflen == 0 on SYNC io_u's It eases the error handling in the splice and sync io engine. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c index 738f3e2..45e8bb8 100644 --- a/io_u.c +++ b/io_u.c
@@ -229,6 +229,7 @@ if (!queue_full(td)) { io_u = list_entry(td->io_u_freelist.next, struct io_u, list); + io_u->buflen = 0; io_u->error = 0; io_u->resid = 0; list_del(&io_u->list);