From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932259AbVIGVHN (ORCPT ); Wed, 7 Sep 2005 17:07:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932310AbVIGVHN (ORCPT ); Wed, 7 Sep 2005 17:07:13 -0400 Received: from [67.40.69.52] ([67.40.69.52]:33770 "EHLO morpheus") by vger.kernel.org with ESMTP id S932259AbVIGVHM (ORCPT ); Wed, 7 Sep 2005 17:07:12 -0400 Subject: Re: [ham] Re: Gracefully killing kswapd, or any kernel thread From: Kristis Makris To: "linux-os (Dick Johnson)" Cc: linux-kernel@vger.kernel.org In-Reply-To: References: <1126122068.2744.20.camel@syd.mkgnu.net> Date: Wed, 07 Sep 2005 14:07:12 -0700 Message-Id: <1126127233.2743.25.camel@syd.mkgnu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.0.4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > To kill a kernel thread, you need to make __it__ call exit(). It must be There must be another way to do it. Perhaps one could have another process effectively issue the contents of do_exit for the kswapd task_struct ? > CODED to do that! You can't do it externally although you can send I'm clearly asking for the case where the thread wasn't coded to do that. > it a signal, after which it will spin forever.... kflushd and keventd don't seem to spin forever. I still haven't determined what makes kswapd spin forever after it receives the signal.