Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3774407iog; Tue, 28 Jun 2022 02:26:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tsuNwrwAH/ATM4pQT7zBY45ZKezL5TbKt7pW1MFm69SiBgl4L8bd8A6nW2waU++T7CmPeI X-Received: by 2002:a17:90b:508f:b0:1ec:a212:1e41 with SMTP id rt15-20020a17090b508f00b001eca2121e41mr21122004pjb.226.1656408393962; Tue, 28 Jun 2022 02:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656408393; cv=none; d=google.com; s=arc-20160816; b=SNtqGahGlhtgkihzT5zWgSDJTrUhmkpDh5tze18UtQK4ghe8PaHCHuyU3fd0dJClfT NZyLg1jOiSPCxyr2R0akv5gLihcW3iyk0l3+fuYxDFRXzVi1VGWF5UwVqhSjly+K+YsR kTjF4yQbWvezgQfqWhOMVyB8F2wvaJf7jFLxL0OZABBX82/FmAU/ERRtmRP/XDjHnbC4 ZvgXoTq5zFD7DLkEq4kG7J06glgPrWkBT/vAhoTKVLtODIzC91Pts31TAJoxoX0Drv3t 0SXVtX5frShuEaV7OgqLvTBdTSwP65lqBK5JFtLlrWVtIesQnDxZd1ogp3qjhtXZL9qS Zyzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=/RPscv3+8g8rx4jXo23oMEeXPiuNo7BXGYwm+0AjXxs=; b=H179hNf8+6j3AzPJazXk5g2jHxPMV/+BYTnMfxNueCLorlKMOdZGPuReKZa0RR2Qa/ ClabyiRrLqNU3AUM4LFyv7lQGHa65dMwnsJQI7vVKmy3XyV2nR8mRqtAtpdkjwEegHt7 aI07cJ7yf8xfkPUmqqj4uBCL5A5uohRv6ITaq7MzrG+RnquF4lSm7Q0NvigogzLfssg0 UqOzn1FXrPRbXNZMgWAe5AG6K2JwHlPGm22qRrT5vtNECZ7NxRh1gO6F1IsV4G3K5N7Y 9hAji5Zsvnmh8E12NTvI6doZmG+T5FLgVFfEqVOwMdwt/GG6OBgbPmxWaAZgCF8jRPAj AxrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=To1tuJ6e; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170903120f00b0016a4da2313dsi21730623plh.171.2022.06.28.02.26.21; Tue, 28 Jun 2022 02:26:33 -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=@gmail.com header.s=20210112 header.b=To1tuJ6e; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230149AbiF1JXE (ORCPT + 99 others); Tue, 28 Jun 2022 05:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344236AbiF1JWi (ORCPT ); Tue, 28 Jun 2022 05:22:38 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 591611D314; Tue, 28 Jun 2022 02:22:37 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id n10so10587417plp.0; Tue, 28 Jun 2022 02:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=/RPscv3+8g8rx4jXo23oMEeXPiuNo7BXGYwm+0AjXxs=; b=To1tuJ6ezfSPRvfvYleOSb9lKKOhueWfZvhziXTEgCM9PUQE9mQ/xhT/GQKDwAx3+K VCwO+26BUmVeT7tjCm709OpoNluVA5TQnQMiEBOnZWK6u0h7/2MQKkzXLs/QTBPtLd+t uaEv/5/AD3aMBX+7rY78FIuqtsaMYfGOxtLmBiFL7mE3st9gwwEYdkaho0GnDCcCS+C6 4iEp8WxQDcPWTMDrt/QPMRtV+Nsnq3jb5UHhTTcpJedWllF567kplSbpUcwnVLjnZnAa /5C8nTucMrmiuELtf9puqfjdHfigFReLoMkmJ6zo4PcDCEvdsypTDDGCHRq1camco5J+ ++lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=/RPscv3+8g8rx4jXo23oMEeXPiuNo7BXGYwm+0AjXxs=; b=u82EjJlCCIcvKHmEVtCSWd6+mXAy1iqPxgQKMvYluUpYtFi6PmtvolOQkWCxY0vAI/ YLUBlP6gIc7FhqO0M2PvcG5v9I/YgpjXtLbXOqXwgnVLyq6cBbzB0/9uZTpR+Mgnpdew zE3fu/dshLAm9jjiXIFIB5RvpFhgFGP8btvfa5jjIRxlZ+FhFSyGtpcFL1Nn0RHYIU8o hOpMWqyKfPxXsaHQt0oUnIA2D7p6+Kr2kJZOSzvk8/yReIsJuWaenPf/kMJbGFq4Duc+ pGn3IQBNgeFWg06r9jBvEPhNlLwu/jT42or8Oy1tpYrpR8M77HmuTlf8QYSB5AfVHm1v ZVsA== X-Gm-Message-State: AJIora/RqHoZziuODpDtdhb1mxlvzz0+/MGni9AIjxSRm3i0vIJR5nBV ffN1UlIVP5BEM/ErWQxRBxU= X-Received: by 2002:a17:90b:1e0e:b0:1ec:b2a6:c9d0 with SMTP id pg14-20020a17090b1e0e00b001ecb2a6c9d0mr26659992pjb.230.1656408156659; Tue, 28 Jun 2022 02:22:36 -0700 (PDT) Received: from localhost ([121.167.227.144]) by smtp.gmail.com with ESMTPSA id p9-20020a1709026b8900b0016372486febsm8688757plk.297.2022.06.28.02.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 02:22:36 -0700 (PDT) Sender: Tejun Heo Date: Tue, 28 Jun 2022 18:22:33 +0900 From: Tejun Heo To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: Vasily Averin , Roman Gushchin , Shakeel Butt , Michal Hocko , Zefan Li , Johannes Weiner , kernel@openvz.org, linux-kernel@vger.kernel.org, Andrew Morton , linux-mm@kvack.org, Vlastimil Babka , Muchun Song , cgroups@vger.kernel.org Subject: Re: [PATCH cgroup] cgroup: set the correct return code if hierarchy limits are reached Message-ID: References: <186d5b5b-a082-3814-9963-bf57dfe08511@openvz.org> <17916824-ba97-68ba-8166-9402d5f4440c@openvz.org> <20220628091648.GA12249@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220628091648.GA12249@blackbody.suse.cz> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Jun 28, 2022 at 11:16:48AM +0200, Michal Koutn? wrote: > The mkdir(2) manpage doesn't list EAGAIN at all. ENOSPC makes better > sense here. (And I suspect the dependency on this particular value won't > be very wide spread.) Given how we use these system calls as triggers for random kernel operations, I don't think adhering to posix standard is necessary or possible. Using an error code which isn't listed in the man page isn't particularly high in the list of discrepancies. Again, I'm not against changing it but I'd like to see better rationales. On one side, we have "it's been this way for a long time and there's nothing particularly broken about it". I'm not sure the arguments we have for the other side is strong enough yet. Thanks. -- tejun