Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbXBMWpg (ORCPT ); Tue, 13 Feb 2007 17:45:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751390AbXBMWpg (ORCPT ); Tue, 13 Feb 2007 17:45:36 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:38227 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbXBMWpf (ORCPT ); Tue, 13 Feb 2007 17:45:35 -0500 Date: Tue, 13 Feb 2007 23:43:22 +0100 From: Ingo Molnar To: Andi Kleen Cc: Davide Libenzi , Linux Kernel Mailing List , Linus Torvalds , Arjan van de Ven , Christoph Hellwig , Andrew Morton , Alan Cox , Ulrich Drepper , Zach Brown , Evgeniy Polyakov , "David S. Miller" , Benjamin LaHaise , Suparna Bhattacharya , Thomas Gleixner Subject: Re: [patch 00/11] ANNOUNCE: "Syslets", generic asynchronous system call support Message-ID: <20070213224322.GL22104@elte.hu> References: <20070213142010.GA638@elte.hu> <20070213215724.GD22104@elte.hu> <20070213222626.GI22104@elte.hu> <20070213223220.GK29492@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070213223220.GK29492@one.firstfloor.org> User-Agent: Mutt/1.4.2.2i X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -0.8 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-0.8 required=5.9 tests=ALL_TRUSTED,BAYES_50 autolearn=no SpamAssassin version=3.1.7 -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP 1.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.4989] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 22 * Andi Kleen wrote: > > ok, that should work fine already - exit in the user context gets > > That would be a little heavy handed. I wouldn't expect my GUI program > to quit itself on cancel. And requiring it to create a new thread just > to exit on cancel would be also nasty. > > And of course you cannot interrupt blocked IOs this way right now > (currently it only works with signals in some cases on NFS) ok. The TID+signal approach i mentioned in the other reply should work. If it's frequent enough we could make this an explicit sys_async_cancel(TID) API. Ingo - 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/