projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69204d6
)
Print error if max number of jobs is exceeded
author
Bruce Cran
<bruce@cran.org.uk>
Fri, 14 Jan 2011 17:30:26 +0000
(18:30 +0100)
committer
Jens Axboe
<jaxboe@fusionio.com>
Fri, 14 Jan 2011 17:30:26 +0000
(18:30 +0100)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index f3085bcd57f0d4e754e8cfca0d7da8a311937a38..c51956e53c0d37d32b7236f9ffe6af902b2684e8 100644
(file)
--- 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;