summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Cran <bruce@cran.org.uk>2011-01-14 18:30:26 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-14 18:30:26 +0100
commite61f1ec89de8eb5bb0f8b1e6a79594f0bff2a259 (patch)
treebd897dd818769b2ac4544606217a1656b816989e
parent69204d6e8830464bc98fcc28ca91412d6d360775 (diff)
downloadfio-e61f1ec89de8eb5bb0f8b1e6a79594f0bff2a259.tar.gz
fio-e61f1ec89de8eb5bb0f8b1e6a79594f0bff2a259.tar.bz2
Print error if max number of jobs is exceeded
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.c b/init.c
index f3085bcd..c51956e5 100644
--- a/init.c
+++ b/init.c
@@ -158,8 +158,11 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent)
if (global)
return &def_thread;
- if (thread_number >= max_jobs)
+ if (thread_number >= max_jobs) {
+ log_err("error: maximum number of jobs (%d) reached.\n",
+ max_jobs);
return NULL;
+ }
td = &threads[thread_number++];
*td = *parent;