public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Bryant <raybry@sgi.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Linus Torvalds <torvalds@osdl.org>,
	Manfred Spraul <manfred@colorfullife.com>,
	Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@digeo.com>, Andi Kleen <ak@suse.de>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: PROBLEM: Bug in __pollwait() can cause select() and poll() to hang in 2.4.22-pre2 -- second try
Date: Wed, 02 Jul 2003 13:06:07 -0500	[thread overview]
Message-ID: <3F031F0F.4020600@sgi.com> (raw)
In-Reply-To: <20030701051719.B2B702C090@lists.samba.org>

Rusty Russell wrote:

> Um, Ray?  2.4's yield also does:
> 
> 	void yield(void)
> 	{
> 		set_current_state(TASK_RUNNING);
> 		sys_sched_yield();
> 		schedule();
> 	}
> 
> So how did the below patch make any difference?
> 
> Now thoroughly confused,
> Rusty.
> 
> --- linux-2.4.22-pre2.orig/mm/page_alloc.c      Thu Nov 28 17:53:15 2002
> +++ linux-2.4.22-pre2/mm/page_alloc.c   Fri Jun 27 13:47:49 2003
> @@ -418,6 +418,7 @@
>                  return NULL;
> 
>          /* Yield for kswapd, and try again */
> +        set_current_state(TASK_RUNNING);
>          yield();
>          goto rebalance;
>   }
> 
> --
>   Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
> 

Duh.  My fault.  I didn't see this in 2.4.22-pre2.  Some checking shows 
that it is also in 2.4.20.  How this didn't get into our SGI 2.4.20 tree 
is beyond me (this where we originally found this problem).  So there is 
no problem in 2.4.22-pre2.

Rusty -- thanks for your perseverence on this.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
Jun 23-Jul 18 I will be at: 970-513-4743
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------


  reply	other threads:[~2003-07-02 17:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-27 18:19 PROBLEM: Bug in __pollwait() can cause select() and poll() to hang in 2.4.22-pre2 -- second try Ray Bryant
2003-06-30  4:34 ` Rusty Russell
2003-06-30 16:24   ` Manfred Spraul
2003-07-01  1:17     ` Rusty Russell
2003-07-01  4:17       ` Linus Torvalds
2003-07-01  5:08         ` Rusty Russell
2003-07-02 18:06           ` Ray Bryant [this message]
2003-07-03  0:56             ` Rusty Russell

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=3F031F0F.4020600@sgi.com \
    --to=raybry@sgi.com \
    --cc=ak@suse.de \
    --cc=akpm@digeo.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@osdl.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