From: Oleg Nesterov <oleg@tv-sign.ru>
To: Anirban Sinha <kernel@anirban.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH]: correction: add a new wait_event_interruptible_timeout_modify helper
Date: Fri, 26 Sep 2008 19:21:18 +0400 [thread overview]
Message-ID: <20080926152118.GA283@tv-sign.ru> (raw)
In-Reply-To: <248103A6-04E3-4F60-BFE4-2D4D42A91F6E@anirban.org>
On 09/26, Anirban Sinha wrote:
>
> arrghh!!! my bad. corrected patch is pasted below:
The patch has numerous whitespace damages, please fix your mailer.
But more importantly, it lacks the changelog. And this changelog
should be very convincing, otherwise I'm afraid the patch will be
ignored. It is not common to add the helper which has no users in
kernel.
> + * It also modifies the @timeout value so that if the sleep is
> interrupted
> + * by a signal, the caller can call this helper again with the updated
> + * timeout.
This is a bit misleading... If the task was interrupted, the next
call will check "condition" and return immediately because of
signal_pending(). We should return to the user-space before we
can do interruptible sleep again.
Why do you need this helper? Given that it is trivial to read
jiffies before and after wait_event_interruptible_timeout(),
it doesn't seem to buy too much.
Oleg.
next prev parent reply other threads:[~2008-09-26 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 2:57 [PATCH]: " Anirban Sinha
[not found] ` <816CA40C-41C0-4CCF-A75B-F67F1A2B0510@anirban.org>
2008-09-26 7:11 ` [PATCH]: correction: " Anirban Sinha
2008-09-26 15:21 ` Oleg Nesterov [this message]
2008-09-26 15:01 ` [PATCH]: " Linus Torvalds
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=20080926152118.GA283@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=kernel@anirban.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®