Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3168038rwi; Fri, 21 Oct 2022 12:29:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4AYyHubZy+gnJiY68V9PdTzg+wblJlnfHQsXjbTLelUWyRmWDKy3V1C1D/O+AFGwieJmjK X-Received: by 2002:a17:902:a612:b0:17e:539:c415 with SMTP id u18-20020a170902a61200b0017e0539c415mr20125577plq.173.1666380547112; Fri, 21 Oct 2022 12:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666380547; cv=none; d=google.com; s=arc-20160816; b=Y/Z36MV7dKwjk454M/jf0r7pVg53xHMIKFBcbtK4szS4VeOc2rSIn5DE1U06bu00Q0 eW3byouwKDfVysAzOS9y+ts3TWxkhaO6PmPYb8YH2csMQwjRlWOLI+BAN0tIZ40kNFSJ 8ASRyGI1xgPqZ8NXb7aoN+mls8I56NkYa7VUBgcj7F9OUvVbQFs36OgaflSaCpQWbTBL rg3kCE4R9X/dI+8Xg7aDtJujwwUPSlK52JeK2ZTJrHETWUAodvCTJSIygGmZqUD1AknY hTx5AChfZceDO6sVRPDHVfatz8AnGhmxRvzlx0GoZVJHAtE2lV7/IHYGsjaRMuw+aEte OmBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mxxaAvPxrZik9nIcemiUXxYujhIElSMZXCeF2dk3fss=; b=XXe1osBAK9kPpAbhoglDydqVdQB8Cpr2c3fnt6orG5Z9rHyCNlaVm2028cl5hcxRvv yDWFE9q+em6r98bpJzBLk5DeowTY/fK3Px56EZ15iNQ3aeuMjPQHuUeVdMLsRUqeff5n 1fflDyAcNgboyC55BDoMGLLburFMHNNLI6UPfEY4Y/+nJvavzj4PW5wBjuezs6OapRIR +EGeyknNyJ1T9u7F2Klm01+L+9Ey9mPPO8QcbSBtzVsWG24PWhq/qaT3MM5Jn/nVgvCc x9UhSIhoqTLQJ0JUqq2+HFUph9Tmk/ZQAo3Svg5ahNj+QKZ1PBxP/gYmy28fyVr8z9Aa zKlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WHjjD7m4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a170903245100b0017811e3927bsi29214061pls.622.2022.10.21.12.28.52; Fri, 21 Oct 2022 12:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WHjjD7m4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbiJUTHL (ORCPT + 99 others); Fri, 21 Oct 2022 15:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbiJUTHE (ORCPT ); Fri, 21 Oct 2022 15:07:04 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FD1C28B1F5; Fri, 21 Oct 2022 12:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666379223; x=1697915223; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=/EQtWCHFFkeAZlmUk41kUqKtdZ+qGfIDaB7P0+omrmQ=; b=WHjjD7m4Dkrb52YAToh3xidj06u7/7vCayG3+rpWaVKiQ2vEx5THzmIH LK0HHz6d22nYHLu7abvUQKZqN2jfGa/lUHuN9Vz6iINnPuPBYRAGDqmEB A2DgOmtJxeF5dADyp2Y5jPIEP2FMqCOk5RfSzTE2itHGJqsOEj+XCWYsT y4mB1YV+Z8de7W0sju4uJ61wSflmoWlgUw6lTtwz/IH1UEV25zwPoz5oS 7r8GcbebnLf/PCFyIYJ8byicjm5AdMo7IemkG+HFAd38eIWjotzZetXhr KtowshtT9fFkfSZHIFhMXUvevqhv0LQJmRhp3/4gqnnRXHkucEsYauhUd w==; X-IronPort-AV: E=McAfee;i="6500,9779,10507"; a="371299725" X-IronPort-AV: E=Sophos;i="5.95,202,1661842800"; d="scan'208";a="371299725" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2022 12:07:01 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10507"; a="581717074" X-IronPort-AV: E=Sophos;i="5.95,202,1661842800"; d="scan'208";a="581717074" Received: from thnguy1-mobl2.amr.corp.intel.com (HELO [10.209.91.210]) ([10.209.91.210]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2022 12:07:00 -0700 Message-ID: Date: Fri, 21 Oct 2022 12:07:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH V2] x86/split_lock: Add sysctl to control the misery mode Content-Language: en-US To: "Guilherme G. Piccoli" , x86@kernel.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, luto@kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, Andre Almeida , Fenghua Yu , Joshua Ashton , Melissa Wen , Paul Gofman , Pavel Machek , Pierre-Loup Griffais , Tony Luck , Zebediah Figura References: <20221014180506.211592-1-gpiccoli@igalia.com> <44b41091-d474-9f80-fcf1-93c8d1316272@intel.com> <267fb708-9fae-f651-d8c6-e34a873d668f@igalia.com> From: Dave Hansen In-Reply-To: <267fb708-9fae-f651-d8c6-e34a873d668f@igalia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/21/22 12:03, Guilherme G. Piccoli wrote: ... >> if (need_release_sem) >> up(...); >> >> That's nice and compact. It's also logically easy to follow because you >> can see how the need_release_sem gets set only after the >> down_interruptible(). It's also nice to have both sites share the >> 'need_release_sem' naming for grepping. >> > > ...but, this is a very good suggestion, and will eliminate the need for > two delayed_works, right? Yes, that too.