From: Jens Axboe Date: Mon, 17 Oct 2005 09:07:03 +0000 (+0200) Subject: [PATCH] Remove MAX_THREADS restriction X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1551d8fb2fc5d0c8d3b624310911d6ebb8d6629c;p=disktools.git [PATCH] Remove MAX_THREADS restriction --- 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");