[PATCH] Remove MAX_THREADS restriction
authorJens Axboe <axboe@suse.de>
Mon, 17 Oct 2005 09:07:03 +0000 (11:07 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 17 Oct 2005 09:07:03 +0000 (11:07 +0200)
fio.c

diff --git a/fio.c b/fio.c
index 41def265352f08cdfe6cddc4f282363680913be5..a7a9ec80209fbe91acf1d93e17e89f1176c624cd 100644 (file)
--- 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");