Increase accuracy of disk utility percentage

If a job file contains more than one job that works on separate
disks, then the job that finishes first will get more idle time
accounted to it.

Fix this by only doing disk util stats when we have files open
on that device.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c
index 2969840..17e076a 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -332,6 +332,7 @@
 	fio_file_reset(f);
 	f->flags |= FIO_FILE_OPEN;
 	f->flags &= ~FIO_FILE_CLOSING;
+	disk_util_inc(f->du);
 
 	td->nr_open_files++;
 	get_file(f);
@@ -386,6 +387,7 @@
 	log_file(td, f, FIO_LOG_OPEN_FILE);
 	return 0;
 err:
+	disk_util_dec(f->du);
 	if (td->io_ops->close_file)
 		td->io_ops->close_file(td, f);
 	return 1;
@@ -401,6 +403,7 @@
 	 */
 	f->flags |= FIO_FILE_CLOSING;
 
+	disk_util_dec(f->du);
 	unlock_file_all(td, f);
 
 	return put_file(td, f);