From: Eli Cohen <eli@mellanox.co.il>
To: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: wait_for_completion_timeout problem ???
Date: Thu, 01 Mar 2007 18:05:50 +0200 [thread overview]
Message-ID: <1172765150.25580.10.camel@mtls03> (raw)
In-Reply-To: <b647ffbd0703010628u253a62cfi56cec22a1ee79d5f@mail.gmail.com>
On Thu, 2007-03-01 at 15:28 +0100, Dmitry Adamushko wrote:
> So either all the users of wait_for_completion_timeout() should
> additionally check for x->done after they got scheduled
>
> or
>
> wait_for_completion_timeout() should return something different that
> encodes the fact /event happened/ and not just /event happened _and_ a
> caller has got scheduled back earlier than timeout.
>
The second suggestion makes sense to me more and is more portable then
the first one.
prev parent reply other threads:[~2007-03-01 16:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 13:32 wait_for_completion_timeout problem ??? Eli Cohen
2007-03-01 14:28 ` Dmitry Adamushko
2007-03-01 14:49 ` Eli Cohen
2007-03-01 15:14 ` Dmitry Adamushko
2007-03-01 15:39 ` Eli Cohen
2007-03-01 16:05 ` Eli Cohen [this message]
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=1172765150.25580.10.camel@mtls03 \
--to=eli@mellanox.co.il \
--cc=dmitry.adamushko@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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.