diff options
author | 2017-02-28 21:58:20 -0700 | |
---|---|---|
committer | 2017-02-28 22:40:52 -0700 | |
commit | cb6f3225601c0c0dd4aee641fd4d7859a4b7e5dd (patch) | |
tree | ec6ae1f1eadc20fd2caf89a770fd267ca059bfac /sys-block/fio/files | |
parent | net-wireless/urh: initial commit of "universal radio hacker" (diff) | |
download | gentoo-cb6f3225601c0c0dd4aee641fd4d7859a4b7e5dd.tar.gz gentoo-cb6f3225601c0c0dd4aee641fd4d7859a4b7e5dd.tar.bz2 gentoo-cb6f3225601c0c0dd4aee641fd4d7859a4b7e5dd.zip |
sys-block/fio: drop old <2.15 versions and old patches
Diffstat (limited to 'sys-block/fio/files')
-rw-r--r-- | sys-block/fio/files/fio-2.2.10-libmtd.patch | 12 | ||||
-rw-r--r-- | sys-block/fio/files/fio-2.2.9-atomic-sync.patch | 140 | ||||
-rw-r--r-- | sys-block/fio/files/fio-2.8-sysmacros.patch | 47 |
3 files changed, 0 insertions, 199 deletions
diff --git a/sys-block/fio/files/fio-2.2.10-libmtd.patch b/sys-block/fio/files/fio-2.2.10-libmtd.patch deleted file mode 100644 index 7e0a0c0d7d5c..000000000000 --- a/sys-block/fio/files/fio-2.2.10-libmtd.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nuar --exclude config.log fio-2.2.10/lib/libmtd.h fio-2.2.10.new/lib/libmtd.h ---- fio-2.2.10/lib/libmtd.h 2016-01-26 18:02:07.000000000 -0800 -+++ fio-2.2.10.new/lib/libmtd.h 2016-02-03 08:10:19.104693006 -0800 -@@ -29,6 +29,8 @@ - extern "C" { - #endif - -+#include <stdint.h> -+ - /* Maximum MTD device name length */ - #define MTD_NAME_MAX 127 - /* Maximum MTD device type string length */ diff --git a/sys-block/fio/files/fio-2.2.9-atomic-sync.patch b/sys-block/fio/files/fio-2.2.9-atomic-sync.patch deleted file mode 100644 index a8b32022e44b..000000000000 --- a/sys-block/fio/files/fio-2.2.9-atomic-sync.patch +++ /dev/null @@ -1,140 +0,0 @@ -fix from upstream - -From 2a2743361cf643b9dd2ba3e491da62e7cb83a101 Mon Sep 17 00:00:00 2001 -From: Jens Axboe <axboe@fb.com> -Date: Mon, 29 Jun 2015 09:34:39 -0600 -Subject: [PATCH] workqueue: make it work on platforms without - __sync_fetch_and_add() - -Signed-off-by: Jens Axboe <axboe@fb.com> ---- - configure | 22 ++++++++++++++++++++++ - workqueue.c | 22 ++++++++++++++++++++++ - workqueue.h | 1 + - 3 files changed, 45 insertions(+) - -diff --git a/configure b/configure -index e459d63..e5cf34d 100755 ---- a/configure -+++ b/configure -@@ -271,6 +271,7 @@ CYGWIN*) - output_sym "CONFIG_TCP_NODELAY" - output_sym "CONFIG_TLS_THREAD" - output_sym "CONFIG_IPV6" -+ output_sym "CONFIG_SFA" - echo "CC=$CC" >> $config_host_mak - echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak - exit 0 -@@ -1492,6 +1493,24 @@ if compile_prog "" "" "getmntinfo"; then - fi - echo "getmntinfo $getmntinfo" - -+########################################## -+# Check whether we have __sync_fetch_and_add() -+sfa=="no" -+cat > $TMPC << EOF -+#include <stdio.h> -+#include <stdlib.h> -+#include <inttypes.h> -+int main(int argc, char **argv) -+{ -+ uint64_t dst = 1, src = 3; -+ __sync_fetch_and_add(&dst, src); -+} -+EOF -+if compile_prog "" "" "__sync_fetch_and_add"; then -+ sfa="yes" -+fi -+echo "__sync_fetch_and_add $sfa" -+ - ############################################################################# - - if test "$wordsize" = "64" ; then -@@ -1671,6 +1690,9 @@ fi - if test "$getmntinfo" = "yes" ; then - output_sym "CONFIG_GETMNTINFO" - fi -+if test "$sfa" = "yes" ; then -+ output_sym "CONFIG_SFA" -+fi - - if test "$zlib" = "no" ; then - echo "Consider installing zlib-dev (zlib-devel), some fio features depend on it." -diff --git a/workqueue.c b/workqueue.c -index b9a967f..8f6963f 100644 ---- a/workqueue.c -+++ b/workqueue.c -@@ -197,6 +197,7 @@ err: - return 1; - } - -+#ifdef CONFIG_SFA - static void sum_val(uint64_t *dst, uint64_t *src) - { - if (*src) { -@@ -204,15 +205,34 @@ static void sum_val(uint64_t *dst, uint64_t *src) - *src = 0; - } - } -+#else -+static void sum_val(uint64_t *dst, uint64_t *src) -+{ -+ if (*src) { -+ *dst += *src; -+ *src = 0; -+ } -+} -+#endif - - static void sum_ddir(struct thread_data *dst, struct thread_data *src, - enum fio_ddir ddir) - { -+#ifndef CONFIG_SFA -+ pthread_mutex_lock(&dst->io_wq.stat_lock); -+ pthread_mutex_lock(&src->io_wq.stat_lock); -+#endif -+ - sum_val(&dst->io_bytes[ddir], &src->io_bytes[ddir]); - sum_val(&dst->io_blocks[ddir], &src->io_blocks[ddir]); - sum_val(&dst->this_io_blocks[ddir], &src->this_io_blocks[ddir]); - sum_val(&dst->this_io_bytes[ddir], &src->this_io_bytes[ddir]); - sum_val(&dst->bytes_done[ddir], &src->bytes_done[ddir]); -+ -+#ifndef CONFIG_SFA -+ pthread_mutex_unlock(&src->io_wq.stat_lock); -+ pthread_mutex_unlock(&dst->io_wq.stat_lock); -+#endif - } - - static void update_accounting(struct submit_worker *sw) -@@ -355,6 +375,7 @@ void workqueue_exit(struct workqueue *wq) - free(wq->workers); - pthread_mutex_destroy(&wq->flush_lock); - pthread_cond_destroy(&wq->flush_cond); -+ pthread_mutex_destroy(&wq->stat_lock); - } - - static int start_worker(struct workqueue *wq, unsigned int index) -@@ -393,6 +414,7 @@ int workqueue_init(struct thread_data *td, struct workqueue *wq, - wq->next_free_worker = 0; - pthread_cond_init(&wq->flush_cond, NULL); - pthread_mutex_init(&wq->flush_lock, NULL); -+ pthread_mutex_init(&wq->stat_lock, NULL); - - wq->workers = calloc(wq->max_workers, sizeof(struct submit_worker)); - -diff --git a/workqueue.h b/workqueue.h -index 5d47a5e..4e92449 100644 ---- a/workqueue.h -+++ b/workqueue.h -@@ -17,6 +17,7 @@ struct workqueue { - - pthread_cond_t flush_cond; - pthread_mutex_t flush_lock; -+ pthread_mutex_t stat_lock; - volatile int wake_idle; - }; - --- -2.4.4 - diff --git a/sys-block/fio/files/fio-2.8-sysmacros.patch b/sys-block/fio/files/fio-2.8-sysmacros.patch deleted file mode 100644 index 0881c1b91d84..000000000000 --- a/sys-block/fio/files/fio-2.8-sysmacros.patch +++ /dev/null @@ -1,47 +0,0 @@ -https://bugs.gentoo.org/580592 - -From a254805d9ca1872adced3f8be2a053211b8f27eb Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Wed, 20 Apr 2016 12:51:23 -0400 -Subject: [PATCH] include sys/sysmacros.h for major/minor - -These functions have always been defined in sys/sysmacros.h under -Linux C libraries. For some, including sys/types.h implicitly -includes that as well, but glibc wants to deprecate that, and some -others already have. Include the header explicitly for the funcs. - -The mtd change is already in upstream mtd-utils too. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - os/os-linux.h | 1 + - oslib/libmtd_common.h | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/os/os-linux.h b/os/os-linux.h -index 9e708f0..23c16b6 100644 ---- a/os/os-linux.h -+++ b/os/os-linux.h -@@ -6,6 +6,7 @@ - #include <sys/ioctl.h> - #include <sys/uio.h> - #include <sys/syscall.h> -+#include <sys/sysmacros.h> - #include <sys/vfs.h> - #include <sys/mman.h> - #include <unistd.h> -diff --git a/oslib/libmtd_common.h b/oslib/libmtd_common.h -index a123323..9768066 100644 ---- a/oslib/libmtd_common.h -+++ b/oslib/libmtd_common.h -@@ -30,6 +30,7 @@ - #include <errno.h> - #include <features.h> - #include <inttypes.h> -+#include <sys/sysmacros.h> - - #ifndef PROGRAM_NAME - # error "You must define PROGRAM_NAME before including this header" --- -2.7.4 - |