-static struct fio_mutex *lock;
-
-static inline void pool_lock(struct pool *pool)
-{
- if (pool->lock)
- fio_mutex_down(pool->lock);
-}
-
-static inline void pool_unlock(struct pool *pool)
-{
- if (pool->lock)
- fio_mutex_up(pool->lock);
-}
-
-static inline void global_read_lock(void)
-{
- if (lock)
- fio_mutex_down_read(lock);
-}
-
-static inline void global_read_unlock(void)
-{
- if (lock)
- fio_mutex_up_read(lock);
-}
-
-static inline void global_write_lock(void)
-{
- if (lock)
- fio_mutex_down_write(lock);
-}
-
-static inline void global_write_unlock(void)
-{
- if (lock)
- fio_mutex_up_write(lock);
-}