From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261799AbVF0EWO (ORCPT ); Mon, 27 Jun 2005 00:22:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261801AbVF0EWO (ORCPT ); Mon, 27 Jun 2005 00:22:14 -0400 Received: from smtp.osdl.org ([65.172.181.4]:37029 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S261799AbVF0EWK (ORCPT ); Mon, 27 Jun 2005 00:22:10 -0400 Date: Sun, 26 Jun 2005 21:24:06 -0700 (PDT) From: Linus Torvalds To: Christoph Lameter cc: Pavel Machek , linux-mm@kvack.org, linux-kernel@vger.kernel.org, raybry@engr.sgi.com Subject: Re: [RFC] Fix SMP brokenness for PF_FREEZE and make freezing usable for other purposes In-Reply-To: Message-ID: References: <20050625025122.GC22393@atrey.karlin.mff.cuni.cz> <20050626023053.GA2871@atrey.karlin.mff.cuni.cz> <20050626030925.GA4156@atrey.karlin.mff.cuni.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 Jun 2005, Christoph Lameter wrote: > > 3. I wish there would be a better way to handle the PF_FREEZE. Its like a > signal delivery after all. Is there any way to define an in kernel signal? > Or a way to make a process execute a certain bit of code? It's called "work", and we have the "TIF_xxx" flags for it. That's how "need-resched" and "sigpending" are done. There could be a "TIF_FREEZEPENDING" thing there too.. Linus