All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: fio@vger.kernel.org, Jens Axboe <axboe@kernel.dk>
Cc: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>,
	Damien Le Moal <Damien.LeMoal@wdc.com>,
	Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Subject: [PATCH 0/2] Fix compilation error on BSD
Date: Thu, 28 May 2020 21:56:40 +0900	[thread overview]
Message-ID: <20200528125642.103863-1-shinichiro.kawasaki@wdc.com> (raw)

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



             reply	other threads:[~2020-05-28 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-28 12:56 Shin'ichiro Kawasaki [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200528125642.103863-1-shinichiro.kawasaki@wdc.com \
    --to=shinichiro.kawasaki@wdc.com \
    --cc=Damien.LeMoal@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=kusumi.tomohiro@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.