Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Sep 7, 2024

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

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:

README.rst +3 -4
index dd521daf..e672ce64 100644
@@ -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 [email protected], subscribe by sending an
-email to [email protected] with
+email to [email protected] 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/
 
stat.c +5 -2
index 2cfd6819..c5413f2f 100644
@@ -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);
 	}
t/jobs/t0035.fio new file +27 -0
new file mode 100644
index 00000000..fd3488f9
@@ -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
t/run-fio-tests.py +10 -0
index 47482144..d713c1c4 100755
@@ -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,