Received: with ECARTIS (v1.0.0; list linux-xfs); Tue, 22 Oct 2002 15:52:17 -0700 (PDT) Received: from pepsi.splentec.com (ns.splentec.com [209.47.35.194]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g9MMqDuR010853 for ; Tue, 22 Oct 2002 15:52:15 -0700 Received: from splentec.com (canoe.splentec.com [209.47.35.250]) by pepsi.splentec.com (8.11.6/8.11.0) with ESMTP id g9MMpbf25995; Tue, 22 Oct 2002 18:51:37 -0400 Message-ID: <3DB5D67A.26137CFC@splentec.com> Date: Tue, 22 Oct 2002 18:51:38 -0400 From: Luben Tuikov Organization: Splentec Ltd. X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19 i686) X-Accept-Language: en MIME-Version: 1.0 To: Christoph Hellwig CC: Stephen Lord , linux-xfs , Eric Sandeen Subject: Re: PATCH: sleeping while holding a lock in _pagebuf_free_bh()::page_buf.c References: <3DB49424.9E4CAC0F@splentec.com> <1035289272.9684.13.camel@laptop.americas.sgi.com> <3DB5AD3F.80402@splentec.com> <20021022210658.A10581@infradead.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 1177 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: luben@splentec.com Precedence: bulk X-list: linux-xfs Christoph Hellwig wrote: > > On Tue, Oct 22, 2002 at 03:55:43PM -0400, Luben Tuikov wrote: > > This is what wake_up_sync() does. wake_up() may reschedule > > on an SMP system, since the other CPUs may be able to get > > another task to run. This is why there are two different > > implementations wake_up() and wake_up_sync(). > > > > If you have 4 CPUs, 3 idle and call wake_up() why should > > the 3 idle CPUs _STAY_ idle, _until_ you (later) call schedule() > > and _then_ to schedule another task on the idle CPUs, and > > you to continue to go on, say if you were a SCHED_FIFO, or > > SCHED_OTHER... > > > > BTW, that the _whole_ point of SMP -- _symmetric_ MP. > > Could you please give me some of thev crack you're smoking? Yep, real professional! -- Luben