mutex: add magic checks

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Only attempt file unlock if we use locking

Fixes a segfault on exit, if file locking isn't used.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mutex: fix the expression for checking the mutext magic

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
posixaio: restart suspend list after we have used aio_suspend()

Otherwise we could both end up putting entries in there twice,
if there are still in flight, or having done entries in there too.
So restart the suspend list after aio_suspend(), so we only put
truly still-pending ios in there.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Consider the maximum block size difference the minimum for loop exit

For mixed block sizes, we can hit the condition where we decided
to stop even if we could have done a small block size. Don't do
another loop for those cases.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure: check for v2 of libnuma

We use options that require 2.x.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mutex: set pshared attributes on rw semaphore

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix build if just one of libverbs or librdma is installed

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix usr/sys/ctx/majf/minf for -USR1 usage

Let the threads themselves update their stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure: fixup build so that it's more resilient

Allow people to clear/set EXTFLAGS/OPTFLAGS at will.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
axmap: fix bug with max_bs/min_bs ratio being > 64

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/axmap: add test for multi bit sets

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix rwlock error messages to specify the correct function names.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Workaround pthreads-win32 pthread_rwlock_init limitation.

On Windows, pthreads-win32 returns EINVAL if you specify an attribute when
calling pthread_rwlock_init. Work around this by only specifying the attribute
when FIO_HAVE_PSHARED_MUTEX is defined.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
axmap: get rid of old debug ->fail_ok checking

Don't assert() on not being able to set a bit. We are returning
the number of bits we set anyway, so just have it return 0.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
parse: fix misparse of bs=64k-128k

We failed parsing the postfix for this case, resulting in
64 and 128k being the result (instead of 64k and 128k).

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fixup json bandwidth output

The final version sent in for inclusion had the check mixed
up, so it doesn't output bandwidth unless the calculation
failed.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
gitignore: ignore configure script outputs

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Merge branch 'master' into gfio

Conflicts:
	Makefile

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix merge error

Fails link because we attempt to link in fio.o twice.

Signed-off-by: Jens Axboe <axboe@kernel.dk>