From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758851AbZAMXwX (ORCPT ); Tue, 13 Jan 2009 18:52:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752658AbZAMXwP (ORCPT ); Tue, 13 Jan 2009 18:52:15 -0500 Received: from gw.goop.org ([64.81.55.164]:49290 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbZAMXwO (ORCPT ); Tue, 13 Jan 2009 18:52:14 -0500 Message-ID: <496D292B.20007@goop.org> Date: Tue, 13 Jan 2009 15:52:11 -0800 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Jiri Kosina CC: Ingo Molnar , Jeremy Fitzhardinge , linux-kernel@vger.kernel.org, Thomas Gleixner , "H. Peter Anvin" Subject: Re: [PATCH] x86: remove byte locks References: <20090112120743.GC24266@elte.hu> <20090112124401.GA31939@elte.hu> <496D1F54.7070104@goop.org> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jiri Kosina wrote: > Why can't this just be somewhere in documentation? (possibly even with the > byte locks code as a reference). > Because Ingo's compil-o-matic will never fail on a documentation error. > It is IMHO just totally confusing to have a spinlock implementation that > is not used at all in the tree. It took me quite some time to go through > this until I finally figured out that this code is actually never used. > Currently, on first sight it might seem that byte locks are used whenever > CONFIG_PARAVIRT is set, which is not true. > Well, a comment next to the code explaining the rationale probably wouldn't go astray. > And apparently even Linus got confused by this, which also tells us > something by itself, see [1]. > > [1] http://marc.info/?l=linux-kernel&m=123144211719754&w=2 > It tells us that Linus couldn't give a rat's arse about virtualization, which is just something we have to cope with ;) J