Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp791374pxb; Tue, 19 Oct 2021 13:07:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk0hOIor3x0ukCyk4n6lOqUXgteCdzHwVtqdQdUBrjAHhaeoxau9uni4wNV7fGV+gtj8Dn X-Received: by 2002:a17:906:c350:: with SMTP id ci16mr38874684ejb.466.1634674022628; Tue, 19 Oct 2021 13:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634674022; cv=none; d=google.com; s=arc-20160816; b=hFGHBcGWGQwdbxe/1h4kJllIoMUwMu7mZrfvDY/2rg9GsiLYSlH2M9Qz1dSBIeSp6M VS0tsUf95anhFKevi31oLI5ounL2n56U+Qn4FUH5ZYDDLT/a/3g9GUaOV0wiIxd9JPkA bAWosMFcey0IGiQ0fBVWEUOYyWveDSrBgL2ondCZRxF2LEtAewSwpaXBxQQE2O/Js0pP 9twmSTgQckly9iPyycVFGm0qvnOKAjCXUItTo4NVA+uM4qNLWr9Pj9bBweAOo/D+c0bz QoNTaBXLXT0P8aM2pv10H6LyL4jzvrgWcOfzKkiN/otqk2Q0SFxoj53cdt1/7rQ0t5zw 6aJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DfGhAHT9HhtqeTpI2TYryH6uFTCkzU6q0SGRJXp8/6w=; b=PV8RaPTTuScwo3XCsZpdpeYy7PPCdnqta6PBipo0Yx3gdyNKDdEM0haESEafyIfNUP Mjh8V7uUOpRvwAp5BFRdxQzguvEqm6GrdWl9kvXq4BJ7jP3WdwPiGtIQdOe5Qc+z0xPT wzERP8EdsG0cBD9Eg5WapCTSyvLqvh3df9JBaLzDBpBkJGzn+I776u0iD/bKVo3GlaeA oTJRsVrkdEao6tx3zU/sfqV6GpT1gfvdxQn/RXR6IWHyYhPT9++OkInSRMxNhCNruHDt mF5Rh4o8rfQtBDZwr/RMnC3msz3/2yF9x+jQVpgzWzNUl/IYThQHtL5uPIgU6hDdTQ+s dIDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gCRm1I8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq38si36591366ejc.492.2021.10.19.13.06.37; Tue, 19 Oct 2021 13:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gCRm1I8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbhJSUGA (ORCPT + 99 others); Tue, 19 Oct 2021 16:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbhJSUF7 (ORCPT ); Tue, 19 Oct 2021 16:05:59 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00B0DC06161C for ; Tue, 19 Oct 2021 13:03:45 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id l5so8237220lja.13 for ; Tue, 19 Oct 2021 13:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DfGhAHT9HhtqeTpI2TYryH6uFTCkzU6q0SGRJXp8/6w=; b=gCRm1I8UHyDh7Mi8CTU+K3MIul4qxwvNzh0Ij1H6xm95MW00t7BiwXquwR0X7cgHwj ArlZ0SIMAiyoiWadSJTfCevxdOFU84GJu+4mFCD3CSATO/QwyMDx/UJy35eBz9r7qzft QuGRgjjA4D9Dq69peRhx0vqHfiIGricAiY1wmqvS9F5zKst3bh3NzKlkt4dDmPZ0TT3I j9bsZL1/TnO5QKdZcJ8SdlN4xT3yvpSGbw3FXc6ypi5maL3g4PBHM220xi+XS0bYuzaL +qqGzod2mROnt/MeAxtoA895HOcPk7PqDA8Td3He8iv4+glZAzLW2Ena2Is1cvXFZmWt 7BZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DfGhAHT9HhtqeTpI2TYryH6uFTCkzU6q0SGRJXp8/6w=; b=FgCvrn+M64s7xhzYhYOkqTR7iwJ9PnBtZNC77PhobjBCadSIiOCGLTdYQIg/Ac7Rqd MYT7sOhy3bweDVYi1Q1q+JkbSlruP+uL/uvzRjK6taI5J1l1F7WV8NOAsSzq2T5eYNfz rBKXzJHAFDXryzF8zOnf01+C9081ZOkJo04/NDAwnRTv8clPBmGYXcoVQuf7laSnpkMq mSM4vH7ZPw0cAdu8R52avr+2MN+oZcctnhuOePVyaVlmxTNMEOCVkG2Kbw6dx133HFhR S/1jGj5X4uAhOyEgOe+T6VQQ+r0xqHLCuUKwAivCnENsnVzYFOnT5wubDMts89AFJAot x8Eg== X-Gm-Message-State: AOAM530+GXo7UcRKMmj4ld1vh9A0+qYQ2/IGyVHTHfN3mUVjhLPVcylI qzVsVdGk2p8/FZLwlX7cJbEsmofsWNdxbGGTNOFzdw== X-Received: by 2002:a05:651c:1793:: with SMTP id bn19mr8820477ljb.475.1634673823685; Tue, 19 Oct 2021 13:03:43 -0700 (PDT) MIME-Version: 1.0 References: <20211019153408.2916808-1-shakeelb@google.com> <20211019125147.0ad010f318bbd8233cadcdae@linux-foundation.org> In-Reply-To: <20211019125147.0ad010f318bbd8233cadcdae@linux-foundation.org> From: Shakeel Butt Date: Tue, 19 Oct 2021 13:03:32 -0700 Message-ID: Subject: Re: [PATCH v3] memcg, kmem: further deprecate kmem.limit_in_bytes To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Vasily Averin , Roman Gushchin , Cgroups , Linux MM , LKML , Michal Hocko , Muchun Song Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 12:51 PM Andrew Morton wrote: > > On Tue, 19 Oct 2021 08:34:08 -0700 Shakeel Butt wrote: > > > The deprecation process of kmem.limit_in_bytes started with the commit > > 0158115f702 ("memcg, kmem: deprecate kmem.limit_in_bytes") which also > > explains in detail the motivation behind the deprecation. To summarize, > > it is the unexpected behavior on hitting the kmem limit. This patch > > moves the deprecation process to the next stage by disallowing to set > > the kmem limit. In future we might just remove the kmem.limit_in_bytes > > file completely. > > > > ... > > > > @@ -3791,10 +3766,8 @@ static ssize_t mem_cgroup_write(struct kernfs_open_file *of, > > ret = mem_cgroup_resize_max(memcg, nr_pages, true); > > break; > > case _KMEM: > > - pr_warn_once("kmem.limit_in_bytes is deprecated and will be removed. " > > - "Please report your usecase to linux-mm@kvack.org if you " > > - "depend on this functionality.\n"); > > - ret = memcg_update_kmem_max(memcg, nr_pages); > > + /* kmem.limit_in_bytes is deprecated. */ > > + ret = -ENOTSUPP; > > break; > > case _TCP: > > ret = memcg_update_tcp_max(memcg, nr_pages); > > checkpatch said "ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP"? I should have run checkpatch and Andrew, please replace ENOTSUPP with EOPNOTSUPP. Thanks for catching this.