Enable error checking for the mutex that serializes overlapping I/O
authorBart Van Assche <bvanassche@acm.org>
Sat, 13 Jun 2020 18:33:37 +0000 (11:33 -0700)
committerBart Van Assche <bvanassche@acm.org>
Sat, 4 Jul 2020 04:20:30 +0000 (21:20 -0700)
commita38c70a8b84f6f000bd15bec694a4f8b278d46a3
tree28e6ee0bc00613b20b33d77b027080a8041f011c
parentc76b661c50fdd085f8ac08c0028b5083b238b8e8
Enable error checking for the mutex that serializes overlapping I/O

Since it is nontrivial to verify that pthread_mutex_lock() and unlock
calls are paired for the overlap_check mutex, enable runtime verification.
The PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP initializer causes
pthread_mutex_lock() to fail with EDEADLK if the mutex was already locked
and causes pthread_mutex_unlock() to fail with EPERM if the mutex is owned
by another thread.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
backend.c
ioengines.c
rate-submit.c