Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 28 Nov 2001 07:23:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 28 Nov 2001 07:23:36 -0500 Received: from ns.suse.de ([213.95.15.193]:3599 "HELO Cantor.suse.de") by vger.kernel.org with SMTP id ; Wed, 28 Nov 2001 07:23:22 -0500 To: Frank Cornelis Cc: linux-kernel@vger.kernel.org Subject: Re: task_struct.mm == NULL In-Reply-To: From: Andi Kleen Date: 28 Nov 2001 13:23:20 +0100 In-Reply-To: Frank Cornelis's message of "28 Nov 2001 13:09:45 +0100" Message-ID: Lines: 12 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Frank Cornelis writes: > Hey, > > I found in some code checks for task_struct.mm being NULL. > When can task_struct.mm of a process be NULL except right before the > process-kill? For kernel threads that run in lazy-mm mode. It allows a much cheaper context switch into kernel threads. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/