From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751056AbdHAEYD (ORCPT ); Tue, 1 Aug 2017 00:24:03 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:33832 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbdHAEYB (ORCPT ); Tue, 1 Aug 2017 00:24:01 -0400 Date: Tue, 1 Aug 2017 00:23:58 -0400 (EDT) From: Nicolas Pitre To: Thomas Gleixner cc: Ingo Molnar , Peter Zijlstra , LKML Subject: Re: [PATCH] futex: split PI support to a file of its own In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Jul 2017, Thomas Gleixner wrote: > But I really do not agree with your reasoning about easier to understand > and maintain. I have the dubious pleasure to stare into that code on a > regular base. PI and non PI share a lot of code and it's really not helping > to have two separate files to stare at. That makes following the PI code > even harder than it is already. So I rather like to see that PI code in an > #ifdef block and not split out into its own file. OK. And in fact I think I now managed to keep #ifdef's to a very small number, counting on dead code elimination instead. Please see next patch. > Please provide a diffstat along with the patch next time. Hmmm... was supposed to be there. For the record it was: include/linux/futex.h | 7 +- init/Kconfig | 7 +- kernel/futex.c | 1559 +----------------------------------------- kernel/futex_pi.c | 1563 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1598 insertions(+), 1538 deletions(-) Admitedly not small. But when PI is disabled then futex.o shrinks by roughly the half of its original size. So a lot of code is dedicated to PI. Nicolas