From 1551d8fb2fc5d0c8d3b624310911d6ebb8d6629c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 17 Oct 2005 11:07:03 +0200 Subject: [PATCH] [PATCH] Remove MAX_THREADS restriction --- fio.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fio.c b/fio.c index 41def26..a7a9ec8 100644 --- a/fio.c +++ b/fio.c @@ -81,7 +81,6 @@ enum { #define MASK (4095) #define TIMEOUT (30) -#define MAX_THREADS (32) #define ALIGN(buf) (((unsigned long) (buf) + MASK) & ~(MASK)) @@ -710,11 +709,6 @@ int main(int argc, char *argv[]) static unsigned long read_mb, write_mb, read_agg, write_agg; int i, jobs; - if (argc - 1 > MAX_THREADS) { - printf("max %d threads\n", MAX_THREADS); - return 1; - } - shm_id = shmget(0, (argc - 1) * sizeof(struct thread_data), IPC_CREAT | 0600); if (shm_id == -1) { perror("shmget"); -- 2.25.1