All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix compilation error on BSD
@ 2020-05-28 12:56 Shin'ichiro Kawasaki
  2020-05-28 12:56 ` [PATCH 1/2] pshared: Add mutex_init_pshared_with_type() Shin'ichiro Kawasaki
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shin'ichiro Kawasaki @ 2020-05-28 12:56 UTC (permalink / raw)
  To: fio, Jens Axboe; +Cc: Tomohiro Kusumi, Damien Le Moal, Shinichiro Kawasaki

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.

Shin'ichiro Kawasaki (2):
  pshared: Add mutex_init_pshared_with_type()
  zbd: Fix compilation error on BSD

 pshared.c | 15 ++++++++++++++-
 pshared.h |  1 +
 zbd.c     | 22 +++++++---------------
 3 files changed, 22 insertions(+), 16 deletions(-)

-- 
2.25.4



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-28 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 12:56 [PATCH 0/2] Fix compilation error on BSD Shin'ichiro Kawasaki
2020-05-28 12:56 ` [PATCH 1/2] pshared: Add mutex_init_pshared_with_type() Shin'ichiro Kawasaki
2020-05-28 12:56 ` [PATCH 2/2] zbd: Fix compilation error on BSD Shin'ichiro Kawasaki
2020-05-28 16:36 ` [PATCH 0/2] " Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.