Loading lib/nvme/nvme.c +7 −1 Original line number Diff line number Diff line Loading @@ -210,9 +210,13 @@ nvme_free_request(struct nvme_request *req) int nvme_mutex_init_shared(pthread_mutex_t *mtx) { pthread_mutexattr_t attr; int rc = 0; #ifdef __FreeBSD__ pthread_mutex_init(mtx, NULL); #else pthread_mutexattr_t attr; if (pthread_mutexattr_init(&attr)) { return -1; } Loading @@ -221,6 +225,8 @@ nvme_mutex_init_shared(pthread_mutex_t *mtx) rc = -1; } pthread_mutexattr_destroy(&attr); #endif return rc; } Loading Loading
lib/nvme/nvme.c +7 −1 Original line number Diff line number Diff line Loading @@ -210,9 +210,13 @@ nvme_free_request(struct nvme_request *req) int nvme_mutex_init_shared(pthread_mutex_t *mtx) { pthread_mutexattr_t attr; int rc = 0; #ifdef __FreeBSD__ pthread_mutex_init(mtx, NULL); #else pthread_mutexattr_t attr; if (pthread_mutexattr_init(&attr)) { return -1; } Loading @@ -221,6 +225,8 @@ nvme_mutex_init_shared(pthread_mutex_t *mtx) rc = -1; } pthread_mutexattr_destroy(&attr); #endif return rc; } Loading