From d7df1d133b0c3daad4ae4c731e0dae7b0181fd62 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 20 Mar 2013 19:57:01 -0600 Subject: Rework lockfile= file lock handling Get rid of the hand rolled rw semaphores, just use pthread rwlocks instead. Kill the batching too, it was broken by default, so nobody could have been using it. Signed-off-by: Jens Axboe --- file.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index eb0688c5..d7e05f4f 100644 --- a/file.h +++ b/file.h @@ -102,10 +102,10 @@ struct fio_file { /* * if io is protected by a semaphore, this is set */ - struct fio_mutex *lock; - void *lock_owner; - unsigned int lock_batch; - enum fio_ddir lock_ddir; + union { + struct fio_mutex *lock; + struct fio_rwlock *rwlock; + }; /* * block map for random io -- cgit v1.2.3