Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756628AbXJ0Qf4 (ORCPT ); Sat, 27 Oct 2007 12:35:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753788AbXJ0Qft (ORCPT ); Sat, 27 Oct 2007 12:35:49 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:56818 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbXJ0Qft (ORCPT ); Sat, 27 Oct 2007 12:35:49 -0400 Date: Sat, 27 Oct 2007 09:35:01 -0700 (PDT) From: Linus Torvalds To: Peter Zijlstra cc: Jiri Kosina , Gabriel C , a.zummo@towertech.it, Linux Kernel Mailing List , Andrew Morton , rtc-linux@googlegroups.com, Ingo Molnar Subject: Re: BUG: lock held when returning to user space In-Reply-To: <1193498921.5648.68.camel@lappy> Message-ID: References: <472348F6.6050100@googlemail.com> <1193498921.5648.68.camel@lappy> 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 Content-Length: 574 Lines: 17 On Sat, 27 Oct 2007, Peter Zijlstra wrote: > > Now I could probably come up with an annotation to hide it, but what do > other people think, Ingo, Linus, Andrew, do we want to keep kernel locks > held over userspace? Definitely not a sane thing to do. It should use ref-counting and/or a single bit to say "busy". Linus - 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/