Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Dec 30, 2020

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit b0340c5c7de38b3f4632366247489da7c52d5cfb:

Merge branch 'terse_units' of https://github.com/sitsofe/fio (2020-12-24 07:38:18 -0700)

are available in the Git repository at:

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

for you to fetch changes up to a64b7d6e9b3e5174e034f7c147de71e4b51b2a01:

Merge branch 'fix-get-next-file' of https://github.com/aclamk/fio (2020-12-29 16:36:32 -0700)

----------------------------------------------------------------
Adam Kupczyk (1):
io_u: Fix bad interaction with --openfiles and non-sequential file selection policy

Jens Axboe (1):
Merge branch 'fix-get-next-file' of https://github.com/aclamk/fio

 io_u.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

---

Diff of recent changes:

io_u.c +4 -2
index f30fc037..00a219c2 100644
@@ -1326,8 +1326,10 @@ static struct fio_file *__get_next_file(struct thread_data *td)
 	if (f && fio_file_open(f) && !fio_file_closing(f)) {
 		if (td->o.file_service_type == FIO_FSERVICE_SEQ)
 			goto out;
-		if (td->file_service_left--)
-			goto out;
+		if (td->file_service_left) {
+		  td->file_service_left--;
+		  goto out;
+		}
 	}
 
 	if (td->o.file_service_type == FIO_FSERVICE_RR ||