client: fix double removal of client on job file open failure
authorJens Axboe <axboe@fb.com>
Thu, 28 Jan 2016 19:47:11 +0000 (12:47 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 28 Jan 2016 19:47:11 +0000 (12:47 -0700)
commit4d057f1f43868457dc265f0d2f93a30a0bd08a35
treeb9f824bc2a469638e07e027a39ad322c9c97b155
parenta8381d78ec52d00541ddd7ef8bd7584e99361b0e
client: fix double removal of client on job file open failure

If fio is invoked as a client and the job file does not exist, it
will exit ala:

fio: job file <x.fio> open: No such file or directory
fio: client.c:240: remove_client: Assertion `client->refs' failed.

because the break path ends up doing the removal twice. Fix that
to only remove it once, so we don't trigger the assert.

Signed-off-by: Jens Axboe <axboe@fb.com>
client.c