Recent changes (master)
The following changes since commit f4e54d3fa7bf94a17648a4439f06ca7dab4291c0:
man: Fix recover_zbd_write_error option description (2025-05-09 08:40:30 -0400)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 171e18146a3ea26491b087a29c6ee7b0ad21e719:
configure: Fix libnfs cflags and libs (2025-05-14 06:56:13 -0400)
----------------------------------------------------------------
Damien Le Moal (1):
configure: Fix libnfs cflags and libs
Shin'ichiro Kawasaki (1):
fio_sem, diskutil: introduce fio_shared_sem and use it for diskutil lock
Makefile | 2 +- ci/actions-install.sh | 2 ++ configure | 4 ++-- diskutil.c | 4 ++-- fio_sem.h | 2 ++ fio_shared_sem.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 fio_shared_sem.c
---
Diff of recent changes:
Makefile +1 -1
@@ -53,7 +53,7 @@ SOURCE := $(sort $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) \ $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/lib/*.c))) \ gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \ eta.c verify.c memory.c io_u.c parse.c fio_sem.c rwlock.c \ - pshared.c options.c \ + pshared.c options.c fio_shared_sem.c \ smalloc.c filehash.c profile.c debug.c engines/cpu.c \ engines/mmap.c engines/sync.c engines/null.c engines/net.c \ engines/ftruncate.c engines/fileoperations.c \
ci/actions-install.sh +2 -0
@@ -32,6 +32,7 @@ DPKGCFG libcunit1-dev libcurl4-openssl-dev libfl-dev + libgnutls28-dev libnuma-dev libnfs-dev valgrind
@@ -106,6 +107,7 @@ install_fedora() { bison-devel git flex-devel + gnutls-devel gperftools isa-l-devel kernel-devel
configure +2 -2
@@ -2361,8 +2361,8 @@ print_config "DAOS File System (dfs) Engine" "$dfs" if test "$libnfs" != "no" ; then if $(pkg-config libnfs > /dev/null 2>&1); then libnfs="yes" - libnfs_cflags=$(pkg-config --cflags libnfs) - libnfs_libs=$(pkg-config --libs libnfs) + libnfs_cflags=$(pkg-config --cflags libnfs gnutls) + libnfs_libs=$(pkg-config --libs libnfs gnutls) else if test "$libnfs" = "yes" ; then feature_not_found "libnfs" "libnfs"
diskutil.c +2 -2
@@ -38,7 +38,7 @@ static void disk_util_free(struct disk_util *du) slave->users--; } -fio_sem_remove (du->lock); +fio_shared_sem_remove (du->lock);free (du->sysfs_root);sfree (du); }
@@ -327,7 +327,7 @@ static struct disk_util *disk_util_add(struct thread_data *td, int majdev, du->minor = mindev;INIT_FLIST_HEAD (&du->slavelist);INIT_FLIST_HEAD (&du->slaves); - du->lock =fio_sem_init (FIO_SEM_UNLOCKED ); + du->lock =fio_shared_sem_init (FIO_SEM_UNLOCKED ); du->users =0 ;fio_sem_down (disk_util_sem);
fio_sem.h +2 -0
@@ -21,8 +21,10 @@ enum {extern int __fio_sem_init (struct fio_sem *,int );extern struct fio_sem *fio_sem_init (int ); +extern struct fio_sem *fio_shared_sem_init (int );extern void __fio_sem_remove (struct fio_sem *);extern void fio_sem_remove (struct fio_sem *); +extern void fio_shared_sem_remove (struct fio_sem *);extern void fio_sem_up (struct fio_sem *);extern void fio_sem_down (struct fio_sem *);extern bool fio_sem_down_trylock (struct fio_sem *);
fio_shared_sem.c new file +42 -0
42 lines not on this page · raw message