[PATCH] Remove rate_quit remnants
authorJens Axboe <jens.axboe@oracle.com>
Tue, 7 Nov 2006 13:16:19 +0000 (14:16 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 7 Nov 2006 13:16:19 +0000 (14:16 +0100)
The option was lost in the option unification, and it can be handled
equally well with 'exitall'.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
fio.h
init.c

diff --git a/fio.c b/fio.c
index 8c059df627294f3607e2e1bae00a6f2c571451fb..0221ca5b959440952783ffcd7fb98e957e9d02d8 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -439,7 +439,7 @@ static void do_io(struct thread_data *td)
                rate_throttle(td, usec, icd.bytes_done[td->ddir], td->ddir);
 
                if (check_min_rate(td, &e)) {
-                       if (rate_quit)
+                       if (exitall_on_terminate)
                                terminate_threads(td->groupid);
                        td_verror(td, ENOMEM);
                        break;
diff --git a/fio.h b/fio.h
index 434c34b237ed718cb1c8312fc77629281d35c39f..f859608c32114a5c520253b5a3ade9ac55c2d2f3 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -348,7 +348,6 @@ struct thread_data {
 #define td_verror(td, err)     __td_verror((td), (err), strerror((err)))
 #define td_vmsg(td, err, msg)  __td_verror((td), (err), (msg))
 
-extern int rate_quit;
 extern int exitall_on_terminate;
 extern int thread_number;
 extern int shm_id;
diff --git a/init.c b/init.c
index 54e2ecae28202622d6954308d192439bb55dca2c..b8e82bc1f9465906250826930377c07d6a14f48d 100644 (file)
--- a/init.c
+++ b/init.c
@@ -417,7 +417,6 @@ static int max_jobs = MAX_JOBS;
 struct thread_data def_thread;
 struct thread_data *threads = NULL;
 
-int rate_quit = 0;
 int exitall_on_terminate = 0;
 int terse_output = 0;
 unsigned long long mlock_size = 0;