From: Jens Axboe <jens.axboe@oracle.com>
To: Roland Dreier <rdreier@cisco.com>
Cc: fio@vger.kernel.org
Subject: Re: "Fix wrong clock source in mutex" broke fio for me
Date: Wed, 7 Oct 2009 22:01:28 +0200 [thread overview]
Message-ID: <20091007200128.GK8703@kernel.dk> (raw)
In-Reply-To: <ada1vlfqan3.fsf@cisco.com>
On Tue, Oct 06 2009, Roland Dreier wrote:
> With the latest fio git tree, I get:
>
> fio: job startup hung? exiting.
>
> on startup, and it looks like the latest commit, 69a852f5 ("Fix wrong
> clock source in mutex") breaks things for me (Ubuntu 9.10 beta). My
> system seems to use CLOCK_REALTIME for pthread_cond_timedwait() by
> default.
Woops, how did I miss that?
> The cleanest solution seems to be to explicitly set which clock to use
> in pthread_cond_timedwait() via pthread_condattr_setclock() when
> initializing the condition variable, although I'm not sure how portable
> this is away from modern Linux (ie do all platforms that fio cares about
> have pthread_condattr_setclock()?).
I did a quick check, and at least newer revisions have it. Hmm I'm a bit
torn on this, perhaps the safer option is just to revert the bad commit.
OK, what I'll do is apply this and then we can worry about older
platforms later. I usually try and test FreeBSD and Solaris
occasionally, to ensure that full releases at least work.
Thanks for reporting and fixing this, Roland!
--
Jens Axboe
next prev parent reply other threads:[~2009-10-07 20:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 6:56 "Fix wrong clock source in mutex" broke fio for me Roland Dreier
2009-10-07 20:01 ` Jens Axboe [this message]
2009-10-07 20:22 ` Roland Dreier
2009-10-08 6:54 ` 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=20091007200128.GK8703@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=fio@vger.kernel.org \
--cc=rdreier@cisco.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox