From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754046Ab1I1K05 (ORCPT ); Wed, 28 Sep 2011 06:26:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38825 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752519Ab1I1K04 convert rfc822-to-8bit (ORCPT ); Wed, 28 Sep 2011 06:26:56 -0400 Subject: Re: [PATCH 4/9] kstaled: minimalistic implementation. From: Peter Zijlstra To: Michel Lespinasse Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , KAMEZAWA Hiroyuki , Dave Hansen , Rik van Riel , Balbir Singh , Andrea Arcangeli , Johannes Weiner , KOSAKI Motohiro , Hugh Dickins , Michael Wolf Date: Wed, 28 Sep 2011 12:26:13 +0200 In-Reply-To: References: <1317170947-17074-1-git-send-email-walken@google.com> <1317170947-17074-5-git-send-email-walken@google.com> <1317195706.5781.1.camel@twins> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.0.3- Message-ID: <1317205574.20318.1.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2011-09-28 at 01:01 -0700, Michel Lespinasse wrote: > On Wed, Sep 28, 2011 at 12:41 AM, Peter Zijlstra wrote: > > On Tue, 2011-09-27 at 17:49 -0700, Michel Lespinasse wrote: > >> +static int kstaled(void *dummy) > >> +{ > >> + while (1) { > > > >> + } > >> + > >> + BUG(); > >> + return 0; /* NOT REACHED */ > >> +} > > > > So if you build with this junk (as I presume distro's will), there is no > > way to disable it? > > There will be a thread, and it'll block in wait_event_interruptible() > until a positive value is written into > /sys/kernel/mm/kstaled/scan_seconds And here I though people wanted less pointless kernel threads..