[PATCH] blktrace: sendfile() poll can use -1 timeout with the flush change
authorJens Axboe <axboe@suse.de>
Thu, 16 Mar 2006 08:28:56 +0000 (09:28 +0100)
committerJens Axboe <axboe@suse.de>
Thu, 16 Mar 2006 08:28:56 +0000 (09:28 +0100)
blktrace.c

index 4b34e9c73fdbdf7e6ad34f5e5f159106acb6fb27..36d2ebe6f951c38a40eff4c5a32cbdd3156a2b92 100644 (file)
@@ -785,7 +785,7 @@ static int get_subbuf_sendfile(struct thread_information *tip,
        struct stat sb;
        unsigned int ready;
 
-       wait_for_data(tip, 250);
+       wait_for_data(tip, -1);
 
        if (fstat(tip->fd, &sb) < 0) {
                perror("trace stat");