Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932209AbWA3KjR (ORCPT ); Mon, 30 Jan 2006 05:39:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932206AbWA3KjR (ORCPT ); Mon, 30 Jan 2006 05:39:17 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:36036 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S932208AbWA3KjQ (ORCPT ); Mon, 30 Jan 2006 05:39:16 -0500 Subject: Re: [PATCH 2.6.16-rc1-git4] accessfs: a permission managing filesystem From: Arjan van de Ven To: Jan Engelhardt Cc: Andrew Morton , olaf+list.linux-kernel@olafdietsche.de, eike-kernel@sf-tec.de, linux-kernel@vger.kernel.org In-Reply-To: References: <87ek3a8qpy.fsf@goat.bogus.local> <200601231257.28796@bilbo.math.uni-mannheim.de> <87mzhgyomh.fsf@goat.bogus.local> <20060128150137.5ba5af04.akpm@osdl.org> <20060130011630.60f402d8.akpm@osdl.org> <1138614388.2977.10.camel@laptopd505.fenrus.org> <1138614856.2977.16.camel@laptopd505.fenrus.org> <1138617073.2977.21.camel@laptopd505.fenrus.org> Content-Type: text/plain Date: Mon, 30 Jan 2006 11:39:10 +0100 Message-Id: <1138617550.2977.24.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 24 On Mon, 2006-01-30 at 11:36 +0100, Jan Engelhardt wrote: > > > >well... maybe. > >If you need to mess inside irq context, spinlocks sound more the right > >thing. Or if you need to do a "I'm done" in the irq and a "sleep until > >done" thing in process context, then you really should use completions > >instead. > > Hm, is it allowed to call copy_{from,to}_user() in irq context? absolutely not. IRQ context has no defined "userspace" context at all, so even if copy_from/to_user wouldn't sleep (they do, and that alone makes it "illegal" to do already) it would be highly undefined what you would be copying to/from. - 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/