On 5/28/20 6:56 AM, Shin'ichiro Kawasaki wrote: > It was reported that the commit b76949618d55 ("fio: Generalize zonemode=zbd") > triggered a compilation failure of zbd.c on NetBSD which does not have > pthread_mutexattr_setpshared(). This patch series addresses the failure. To > avoid pthread_mutexattr_setpshared() calls, utilize helper functions pshared.c > provides. > > The first patch adds another helper function in pshared.c to initialize mutex > with attribute types desired. The second patch replace mutex initialization in > zbd.c with the helper functions. To initialize mutex with POSIX_MUTEX_RECURSIVE > attribute type, utilize the newly introduced function. > > I do not have NetBSD (or other BSD) system then this series is not confirmed > build pass on NetBSD. Confirmation by BSD users will be appreciated. I've applied this for now, assuming the BSD interested parties will vet them soon. -- Jens Axboe