io_u: Add a debug message in fill_io_u()
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Feb 2023 21:40:30 +0000 (13:40 -0800)
committerBart Van Assche <bvanassche@acm.org>
Wed, 22 Feb 2023 21:55:19 +0000 (13:55 -0800)
A debug message is logged before each 'return io_u_eof' statement in
fill_io_u() except one. Hence add a debug message in front of that one
return statement.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
io_u.c

diff --git a/io_u.c b/io_u.c
index eb617e649c1df82dba42259361cd36f3a32e7796..d50d84651154f7131e058115efe18ba86762fd1e 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -984,8 +984,10 @@ static int fill_io_u(struct thread_data *td, struct io_u *io_u)
        offset = io_u->offset;
        if (td->o.zone_mode == ZONE_MODE_ZBD) {
                ret = zbd_adjust_block(td, io_u);
-               if (ret == io_u_eof)
+               if (ret == io_u_eof) {
+                       dprint(FD_IO, "zbd_adjust_block() returned io_u_eof\n");
                        return 1;
+               }
        }
 
        if (io_u->offset + io_u->buflen > io_u->file->real_file_size) {