Add rw mutex init helper
[fio.git] / smalloc.c
index e6f89b2dd94824f6fe0432825c625d9d00c44ffd..9a7c25bf058899449109a5f1f15792db08738fbf 100644 (file)
--- a/smalloc.c
+++ b/smalloc.c
@@ -271,7 +271,7 @@ void sinit(void)
        int ret = add_pool(&mp[0]);
 
 #ifdef MP_SAFE
-       lock = fio_mutex_init(1);
+       lock = fio_mutex_rw_init();
 #endif
        assert(!ret);
 }