Recent changes (master)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following changes since commit 65098b11f8aa28e328c225dcd39e3338bb005fdc:

  iolog: add va_end on error (2024-09-05 14:35:30 -0400)

are available in the Git repository at:

  git://git.kernel.dk/fio.git master

for you to fetch changes up to f0af0812543d3d9a4019e2979c6e32f479ee70c4:

  Update mailing list details in README.rst (2024-09-06 15:22:48 -0600)

----------------------------------------------------------------
Rebecca Cran (1):
      Update mailing list details in README.rst

Shin'ichiro Kawasaki (2):
      stat: fix the null io_u dereference in add_clat_sample()
      t/jobs/t0035: add test for the file operations IO engine

 README.rst         |  7 +++----
 stat.c             |  7 +++++--
 t/jobs/t0035.fio   | 27 +++++++++++++++++++++++++++
 t/run-fio-tests.py | 10 ++++++++++
 4 files changed, 45 insertions(+), 6 deletions(-)
 create mode 100644 t/jobs/t0035.fio

---

Diff of recent changes:

diff --git a/README.rst b/README.rst
index dd521daf..e672ce64 100644
--- a/README.rst
+++ b/README.rst
@@ -53,11 +53,10 @@ see REPORTING-BUGS.
 
 An automated mail detailing recent commits is automatically sent to the list at
 most daily. The list address is fio@xxxxxxxxxxxxxxx, subscribe by sending an
-email to majordomo@xxxxxxxxxxxxxxx with
+email to fio+subscribe@xxxxxxxxxxxxxxx or visit
+https://subspace.kernel.org/vger.kernel.org.html.
 
-	subscribe fio
-
-in the body of the email. Archives can be found here:
+Archives can be found here:
 
 	https://www.spinics.net/lists/fio/
 
diff --git a/stat.c b/stat.c
index 2cfd6819..c5413f2f 100644
--- a/stat.c
+++ b/stat.c
@@ -3340,8 +3340,11 @@ void add_clat_sample(struct thread_data *td, enum fio_ddir ddir,
 
 	if (td->clat_log) {
 		struct log_sample sample = { sample_val(nsec), ddir, bs,
-			offset, ioprio,
-			ntime_since(&td->epoch, &io_u->issue_time) };
+			offset, ioprio, 0 };
+
+		if (io_u)
+			sample.issue_time =
+				ntime_since(&td->epoch, &io_u->issue_time);
 
 		add_log_sample(td, td->clat_log, &sample);
 	}
diff --git a/t/jobs/t0035.fio b/t/jobs/t0035.fio
new file mode 100644
index 00000000..fd3488f9
--- /dev/null
+++ b/t/jobs/t0035.fio
@@ -0,0 +1,27 @@
+[global]
+size=4k
+write_lat_log=log
+
+[job1]
+ioengine=filecreate
+filename=t0035file1
+
+[job2]
+ioengine=filestat
+filename=t0035file2
+
+[job3]
+ioengine=filedelete
+filename=t0035file3
+
+[job4]
+ioengine=dircreate
+filename=t0035dir1
+
+[job5]
+ioengine=dirstat
+filename=t0035dir2
+
+[job6]
+ioengine=dirdelete
+filename=t0035dir3
diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py
index 47482144..d713c1c4 100755
--- a/t/run-fio-tests.py
+++ b/t/run-fio-tests.py
@@ -944,6 +944,16 @@ TEST_LIST = [
         'pre_success':      SUCCESS_DEFAULT,
         'requirements':     [Requirements.linux, Requirements.libaio],
     },
+    {
+        'test_id':          35,
+        'test_class':       FioJobFileTest,
+        'job':              't0035.fio',
+        'success':          SUCCESS_DEFAULT,
+        'pre_job':          None,
+        'pre_success':      None,
+        'pre_success':      SUCCESS_DEFAULT,
+        'requirements':     [],
+    },
     {
         'test_id':          1000,
         'test_class':       FioExeTest,




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux