Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp157638pxf; Wed, 31 Mar 2021 20:06:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAzazQg7fJJQVMXGmMaP7aofcf7Y/pTe1UEm8MsoR3Nej3BPgDt9BAJqTe1GqaK/Sjv6J+ X-Received: by 2002:a05:6402:104c:: with SMTP id e12mr7239889edu.108.1617246414577; Wed, 31 Mar 2021 20:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617246414; cv=none; d=google.com; s=arc-20160816; b=epVVLpYe0+307S7xK8oK9YSQmblMw/+ZvOazwOoxVTAyZzl4ip2hR0zks9VQQmP82/ H44SO5TYmvNnJAHjYqO9OF0Q1vdM921yhaJsqQRRwgk/++rD175mFi6IKiYW2MSw5R8M nQ8rEbPKE6BY+Vrd1OUjve1/Tz06VmnoTfO1XGvicDF55WL3OJETmu6e6xely9/f7bNM lL5Qef5ooyV5xjGNBETOFBbs+kkbRJsc+pDzk2QWb6zCTXbS0e9NwGzMfONStO/I4R+x L6S8jroInjPOEb8XDnXiwAwHVQAaybxACKTaw/GKFU9YhixOlVUe8CYrwYfvMi+RlTTT 5GNg== 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=ZpcCB/yZQjtxmSvNwUXuvC5WufLzW9NTW+SZzfG26SM=; b=hAZS8MANylXqwa3ulpl6q9TEZ4qidIiZ7SlW0LtSL2SxhLv4OB2FaQE8sJH0igpJJu wA6MwLMLa4nKadzCOIOGhytBPR8aciaOGJiJbPeM+spqJWQFSfxKWZOlQUxgJxI7bImj WNK5H5ngbuJ/+kIw+HnJXZDdG3bn0Xrj2HBDUH8JKGDljfq6QDoITyTXsU1d6L4KhxmH AtskGtjnN5z+58uLGf2j/0s2AqW75CU7+CWPmXEXdyoRTJ/jx4UNioquCDlhKOsZnmyU zZam+ePkqeuVmuJd5cnM3SE6zRFBm4HqigZ3DjXfi2ub1Gn37Ok4ER+znP9qvXcf5Bov MxPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="mJnD+5/F"; 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 bv9si3116012ejb.377.2021.03.31.20.06.10; Wed, 31 Mar 2021 20:06:54 -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=20161025 header.b="mJnD+5/F"; 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 S233315AbhDADFF (ORCPT + 99 others); Wed, 31 Mar 2021 23:05:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbhDADFC (ORCPT ); Wed, 31 Mar 2021 23:05:02 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D22C0613E6 for ; Wed, 31 Mar 2021 20:05:01 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id g8so595909lfv.12 for ; Wed, 31 Mar 2021 20:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZpcCB/yZQjtxmSvNwUXuvC5WufLzW9NTW+SZzfG26SM=; b=mJnD+5/FcW5QnDfIuw+SnVPNl2bvvbhjw1V0N75DirqvwNJIO/pUXTfBBZMvOc1NRs YeyW0p4U684hJpTDV2eplcbtYR7zA8ezWrYqx7mrzgSZxe1ZcIFzcMG4Kd0PA/m22tQj goSs7P1t/a9nRxjGJFaN/WIIKHq5LOuA0ExkAenn8kiUOuNgVYj/DIERFC9U4Cya4XrR GuXstKeU5Brz8B66dJ3XPlzh+xT9YRBc3weiwmLoYPvE94zZrCjz5kw9S5d5BswVTGug koBeOdILy8N2MLFcBO7lCwyn6AwkSItbPLUQX4LdB96mXpALU5F73fhfnJbOOass8lPD G8+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZpcCB/yZQjtxmSvNwUXuvC5WufLzW9NTW+SZzfG26SM=; b=e1xD6kPr5iwAOu+AzUykRpdER/XXOyxC54NB7TT/Cm9GMZVaUGF1wr3h+TMD1Ym10b d60rZ+lcmFWRFyOZNhHw6Y8W4Xz09men7LNKyDdJNO0fZ6KiNJJL12A3bJxZemeCEke5 C3hD3w8Bj6xzcld52BdNWfOAZYOMu3gnY5gWjDcM4Ekt8NjnIHD6fajViZNDAxwZaF62 tO9Bz4LpHfG5AnEIvVTBGNWYgVa3h2IFd3jlmc7PcRmGrUw0upHe5xM7UQiSHdzuLp0O NRBfFIEdxBGzPANWKrJOse6DWrO6/6LT8UHgDXkHsTQKY6PWwdUl/4wWM6hzgdtEzGvh 1elg== X-Gm-Message-State: AOAM532HAwzS7B+VgIXu19/jHoTT9lCiZWR1A2RHnwXeBezHRp9wR1K/ e0AExE0ccI/tQgq/9fdtfLLYPLG8gcEFwrxZBqIhVA== X-Received: by 2002:a05:6512:2356:: with SMTP id p22mr3918376lfu.347.1617246299839; Wed, 31 Mar 2021 20:04:59 -0700 (PDT) MIME-Version: 1.0 References: <20210401030141.37061-1-songmuchun@bytedance.com> In-Reply-To: <20210401030141.37061-1-songmuchun@bytedance.com> From: Shakeel Butt Date: Wed, 31 Mar 2021 20:04:48 -0700 Message-ID: Subject: Re: [PATCH] mm: memcontrol: fix forget to obtain the ref to objcg in split_page_memcg To: Muchun Song Cc: Roman Gushchin , Johannes Weiner , Michal Hocko , Andrew Morton , Vladimir Davydov , LKML , Linux MM , Xiongchun duan , Christian Borntraeger Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 8:02 PM Muchun Song wrote: > > Christian Borntraeger reported a warning about "percpu ref > (obj_cgroup_release) <= 0 (-1) after switching to atomic". > Because we forgot to obtain the reference to the objcg and > wrongly obtain the reference of memcg. > > Reported-by: Christian Borntraeger > Signed-off-by: Muchun Song Looks good to me. Reviewed-by: Shakeel Butt