From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 27AD42F5A7 for ; Fri, 1 Dec 2000 13:41:33 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eB1IfWP11169 for axp-list@listman.redhat.com; Fri, 1 Dec 2000 13:41:32 -0500 Received: from pizda.ninka.net (IDENT:root@pizda.ninka.net [216.101.162.242]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eB1IfWD11163 for ; Fri, 1 Dec 2000 13:41:32 -0500 Received: (from davem@localhost) by pizda.ninka.net (8.9.3/8.9.3) id KAA02951; Fri, 1 Dec 2000 10:19:44 -0800 Date: Fri, 1 Dec 2000 10:19:44 -0800 Message-Id: <200012011819.KAA02951@pizda.ninka.net> From: "David S. Miller" To: andrea@suse.de Cc: ink@jurassic.park.msu.ru, ezolt@perf.zko.dec.com, axp-list@redhat.com, rth@twiddle.net, Jay.Estabrook@compaq.com, linux-kernel@vger.kernel.org, clinux@zk3.dec.com, wcarr@perf.zko.dec.com, linux-alpha@vger.kernel.org In-reply-to: <20001201151842.C30653@athlon.random> (message from Andrea Arcangeli on Fri, 1 Dec 2000 15:18:42 +0100) Subject: Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11] References: <20001201004049.A980@jurassic.park.msu.ru> <20001130233742.A21823@athlon.random> <20001201145619.A553@jurassic.park.msu.ru> <20001201151842.C30653@athlon.random> X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Date: Fri, 1 Dec 2000 15:18:42 +0100 From: Andrea Arcangeli I'm still left the #ifdef __alpha__ around the context[NR_CPUS] to avoid breakage of other archs but that should be probably removed: any CPU with per-CPU ASNs like alpha needs per-CPU per-MM context information to avoid wasting ASNs when the task migrate CPU or with threads. I would instead suggest to declare 'context' to be of an arch-specific defined type, much like "thread_struct" is. For example, I don't need NR_CPUS contexts in the mm_struct on sparc64, my allocation just works differently, so I shouldn't eat all the space. Later, David S. Miller davem@redhat.com