Revamp file locking
authorJens Axboe <jens.axboe@oracle.com>
Tue, 4 Mar 2008 09:18:56 +0000 (10:18 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 4 Mar 2008 09:18:56 +0000 (10:18 +0100)
commit4d4e80f2b4260f2c8b37a8612ce655502a799f7a
tree4eb7d5762a63cdacc390b51add1e524bd84f760c
parent5f1348c709d91ffa54bde1a6a1beb53ecda613b7
Revamp file locking

Get rid of the semaphore implementation, no need to carry both.
Add different locking modes (exclusive and readwrite) to enable
a wider range of testing. Also combine lockfile and lockfile_batch,
the latter is now a postfix option to the former.

So to enable readers-excluding-writers locking mode with a lock batch
count of 4, you would write:

lockfile=readwrite:4

instead.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
12 files changed:
HOWTO
Makefile
filesetup.c
fio.h
io_u.c
ioengines.c
mutex.c
mutex.h
options.c
sem.c [deleted file]
sem.h [deleted file]
smalloc.c