* [patch 4/10] s390: schedule_timeout cleanup in ctctty
@ 2005-05-27 9:02 Frank Pavlic
2005-05-28 9:53 ` Domen Puncer
0 siblings, 1 reply; 3+ messages in thread
From: Frank Pavlic @ 2005-05-27 9:02 UTC (permalink / raw)
To: jgarzik, linux-kernel
[patch 4/10] s390: schedule_timeout cleanup in ctctty.
From: Domen Puncer <domen@coderock.org>
Use msleep_interruptible() instead of schedule_timeout()
to guarantee the task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Frank Pavlic <pavlic@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
diffstat:
drivers/s390/net/ctctty.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff -urpN linux-2.6/drivers/s390/net/ctctty.c linux-2.6-patched/drivers/s390/net/ctctty.c
--- linux-2.6/drivers/s390/net/ctctty.c 2005-05-06 11:25:57.000000000 +0200
+++ linux-2.6-patched/drivers/s390/net/ctctty.c 2005-05-06 11:26:14.000000000 +0200
@@ -1,5 +1,5 @@
/*
- * $Id: ctctty.c,v 1.26 2004/08/04 11:06:55 mschwide Exp $
+ * $Id: ctctty.c,v 1.29 2005/04/05 08:50:44 mschwide Exp $
*
* CTC / ESCON network driver, tty interface.
*
@@ -1056,8 +1056,7 @@ ctc_tty_close(struct tty_struct *tty, st
info->tty = 0;
tty->closing = 0;
if (info->blocked_open) {
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ/2);
+ msleep_interruptible(500);
wake_up_interruptible(&info->open_wait);
}
info->flags &= ~(CTC_ASYNC_NORMAL_ACTIVE | CTC_ASYNC_CLOSING);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 4/10] s390: schedule_timeout cleanup in ctctty
2005-05-27 9:02 [patch 4/10] s390: schedule_timeout cleanup in ctctty Frank Pavlic
@ 2005-05-28 9:53 ` Domen Puncer
2005-05-29 9:20 ` Frank Pavlic
0 siblings, 1 reply; 3+ messages in thread
From: Domen Puncer @ 2005-05-28 9:53 UTC (permalink / raw)
To: Frank Pavlic; +Cc: jgarzik, linux-kernel
On 27/05/05 11:02 +0200, Frank Pavlic wrote:
>
> [patch 4/10] s390: schedule_timeout cleanup in ctctty.
>
> From: Domen Puncer <domen@coderock.org>
>
> Use msleep_interruptible() instead of schedule_timeout()
> to guarantee the task delays as expected.
>
> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Actually it's from:
Nishanth Aravamudan <nacc@us.ibm.com>
Since then, I updated scripts to add the "From: " in the
body, so this shouldn't be an issue in the future.
> Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
> Signed-off-by: Domen Puncer <domen@coderock.org>
> Signed-off-by: Frank Pavlic <pavlic@de.ibm.com>
> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
>
Domen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 4/10] s390: schedule_timeout cleanup in ctctty
2005-05-28 9:53 ` Domen Puncer
@ 2005-05-29 9:20 ` Frank Pavlic
0 siblings, 0 replies; 3+ messages in thread
From: Frank Pavlic @ 2005-05-29 9:20 UTC (permalink / raw)
To: Domen Puncer; +Cc: jgarzik, linux-kernel
Domen Puncer <domen@coderock.org> wrote on 28.05.2005 11:53:18:
> On 27/05/05 11:02 +0200, Frank Pavlic wrote:
> >
> > [patch 4/10] s390: schedule_timeout cleanup in ctctty.
> >
> > From: Domen Puncer <domen@coderock.org>
> >
> > Use msleep_interruptible() instead of schedule_timeout()
> > to guarantee the task delays as expected.
> >
> > Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
>
> Actually it's from:
> Nishanth Aravamudan <nacc@us.ibm.com>
>
> Since then, I updated scripts to add the "From: " in the
> body, so this shouldn't be an issue in the future.
>
> > Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
> > Signed-off-by: Domen Puncer <domen@coderock.org>
> > Signed-off-by: Frank Pavlic <pavlic@de.ibm.com>
> > Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
> >
>
>
> Domen
thank you for the correction ....
Frank
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-29 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27 9:02 [patch 4/10] s390: schedule_timeout cleanup in ctctty Frank Pavlic
2005-05-28 9:53 ` Domen Puncer
2005-05-29 9:20 ` Frank Pavlic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox