From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 269AFC3A59F for ; Mon, 26 Aug 2019 23:00:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E71BF21848 for ; Mon, 26 Aug 2019 23:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566860404; bh=9HU752brhPDitF+fXtIax2+34bksF89mk8XaaI0hlHw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=QlVPFAocthCTY7H8jtvu3XVlCBbrMIkmi3FE+P+PO9rDIc+Xv31gDRNwyKR+TfxBt ISQzg0Z1wZ0/iSI4U85i7GL0oEg40LIXa6YpTxZ9LGMO6/AmusM9IU1ZVJi2mnGjpB OnWleYv8uhf6+12FgfEWNn7sCyVpZS/gL+18agIQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbfHZXAD (ORCPT ); Mon, 26 Aug 2019 19:00:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:37750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbfHZXAC (ORCPT ); Mon, 26 Aug 2019 19:00:02 -0400 Received: from localhost (lfbn-ncy-1-174-150.w83-194.abo.wanadoo.fr [83.194.254.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FDF1206BA; Mon, 26 Aug 2019 23:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566860401; bh=9HU752brhPDitF+fXtIax2+34bksF89mk8XaaI0hlHw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qI5rkvRNL0XsTCijI2EoyZ5UlQ7WhyXvi2hWlmKVaXHMu5zQGIufp1ZMQsbJSqA4K rYdoqGs5TfHRO0nJJsuZvQ2HyLwjIk7Kah7ZaAbUu3SuvGPEdzMulvFhdkJ5/6AegO ++AtuW8Zhaul63bQhEx2+OqdpgfjUV1NchzNwtfU= Date: Tue, 27 Aug 2019 00:59:59 +0200 From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , Oleg Nesterov , Ingo Molnar , Peter Zijlstra , John Stultz , Anna-Maria Behnsen , Christoph Hellwig Subject: Re: [patch V2 35/38] posix-cpu-timers: Remove pointless comparisons Message-ID: <20190826225958.GJ14309@lenoir> References: <20190821190847.665673890@linutronix.de> <20190821192922.548747613@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190821192922.548747613@linutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 09:09:22PM +0200, Thomas Gleixner wrote: > The soft RLIMIT expiry code checks whether the soft limit is greater than > the hard limit. That's pointless because if the soft RLIMIT is greater than > the hard RLIMIT then that code cannot be reached as the hard RLIMIT check > is before that and already killed the process. > > Remove it. > > Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker