Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1938529pxb; Mon, 8 Mar 2021 09:50:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv+nuF2EzOwkFu+wvSL+AlFsr/0XoMzdPk1NahlBR2KT/Ay5L4Htr+3shDpHWPjEefMiq3 X-Received: by 2002:a50:fa42:: with SMTP id c2mr23727066edq.159.1615225830145; Mon, 08 Mar 2021 09:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615225830; cv=none; d=google.com; s=arc-20160816; b=a77U8Q9sYW30JquWNvcmGOFezh7na6yuWs2v+GIJPP8Pnvr8HevVN8/DjTVUuw3Ozm 3wkPncwwezbgoYtZheiNCXMRH+qL/jA9tndsZXIjZe4KfvrGuoo83wepZxUI5m22iyZ1 edez+eTOvyzD001c4qxHK7QC1v/LKyj8HtJuAF6h0x63Pj7reKoBg0hXJ86jhm65gtzf hzr8287xXOUwwn7JaRfFd/VQcWHbAkqPlqsqNUEa6pIXNtMrjj4T/KTUrUy6TSUHd7dQ aJxMiUl+LE3vpYMojNDvrklx8M4FawNXc2nY7WqM7IYZboQTgOPwsgdr9lND311CKTCJ 1hPw== 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=giD8jSsyZJtO1DBnfL0AaLcvwbpWQ52I68uSxFCyz/k=; b=Uk0kcf42+jjT9PeaW1Jy9X9Da2Bh83NP/sEVoYmVPmKp25BdgxoScQfT1EgtgN8B7j qon1z/MFdyUnWQOBPYbHrZw6Qs54YcjiTbD3hEFDXIgG1KJqjpkuEBQr5x00D9t2OTQA 6Q24vk5nWrpRV8iW/pafrrKlhKZJwq5Dn7JlMoTZZFWgf5RIqdnifiCq8Yymvue4RK5N xqRCRmjct3hY9V5jfvdMptflu8wzqpy5ic4pEP2LJbNOllUvzJjVD4InpB+d7Slk6bsi cjPdNDDaYl7nHOoxSpfqBFSEmhr5PggEAFTOLzH2NUfT5gO7j6/vkA0q3YW2dMngJ3v6 ZExw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QPpLMFgS; 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 g2si7948811edf.400.2021.03.08.09.50.07; Mon, 08 Mar 2021 09:50:30 -0800 (PST) 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=QPpLMFgS; 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 S230426AbhCHRst (ORCPT + 99 others); Mon, 8 Mar 2021 12:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbhCHRsj (ORCPT ); Mon, 8 Mar 2021 12:48:39 -0500 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 D85D8C06175F for ; Mon, 8 Mar 2021 09:48:38 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id e7so22433154lft.2 for ; Mon, 08 Mar 2021 09:48:38 -0800 (PST) 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=giD8jSsyZJtO1DBnfL0AaLcvwbpWQ52I68uSxFCyz/k=; b=QPpLMFgSpH9WgV4NcTrB7d+hZtjE/5GT3F2G644kSvUU9b3EGps3rmRAaXpJdfSNrw nBbGd4eLyVIbdTkY7G9viNOngWpUPb8hF3N6jNc8xSGecRsOjJJ18VOIDrclO79YnIej M+KgZzdCA1b5KoWhpxEZz0iXTRSimI/UDdN7cNiISFBjW9ksoNl6GN+FvNbU8wYWq6zk h7K3H4Ih+dZSluL+jMFMYRNXk+3Nv02Ztvu/bvSes259hNSUnyW9tNlloRckDhyGcL26 +f9oprjrH1qwP+ILRdp54S1RPGcKQvitB+ByslpCOaMXBdB3UJXh/MvLiCoFJH04MSVA Y7Ng== 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=giD8jSsyZJtO1DBnfL0AaLcvwbpWQ52I68uSxFCyz/k=; b=LetvLWO0+dOYuc+j9Z05imNOW8AsszYwVncc1/IZTKPBbxB6NYlGSisqheluWDiHTz kG6oPfdCLf5FSIZn5/lyeissmiXdCdoVfRkz0E1c6sUw0gsBinlEG1ZLcWppRVoC96C5 ZglaGadkFSsVFi6miMb6n2KL07uJD80iMpg793RqSnU3GLslNU47/8GhA+RucMy2W2qa 82Do7SW3KTWRkMT2UkAuejeAQaQahijwRMwin8Q8I5rugkiLT4USGEpU3IKlxJVU7OZr Vb9+BD23JIkWuWZ7cbICcimkyXMmDRk3J29vPBPDVIjGvwLdz0Rb37X6JxeiNcCdo+ZS iP3w== X-Gm-Message-State: AOAM53037WrPNvoqL7Le61Db0NPtF1OaZWzrEf5qgsnHz+K5iDgC5QQY Tkqy5Llj1KrEWO1m+7OetVFHRGuX0aR8jhLYYDRHUg== X-Received: by 2002:a05:6512:6c6:: with SMTP id u6mr14739762lff.347.1615225717126; Mon, 08 Mar 2021 09:48:37 -0800 (PST) MIME-Version: 1.0 References: <20210217001322.2226796-1-shy828301@gmail.com> <20210217001322.2226796-9-shy828301@gmail.com> In-Reply-To: <20210217001322.2226796-9-shy828301@gmail.com> From: Shakeel Butt Date: Mon, 8 Mar 2021 09:48:22 -0800 Message-ID: Subject: Re: [v8 PATCH 08/13] mm: vmscan: use a new flag to indicate shrinker is registered To: Yang Shi Cc: Roman Gushchin , Kirill Tkhai , Vlastimil Babka , Dave Chinner , Johannes Weiner , Michal Hocko , Andrew Morton , Linux MM , linux-fsdevel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 4:13 PM Yang Shi wrote: > > Currently registered shrinker is indicated by non-NULL shrinker->nr_deferred. > This approach is fine with nr_deferred at the shrinker level, but the following > patches will move MEMCG_AWARE shrinkers' nr_deferred to memcg level, so their > shrinker->nr_deferred would always be NULL. This would prevent the shrinkers > from unregistering correctly. > > Remove SHRINKER_REGISTERING since we could check if shrinker is registered > successfully by the new flag. > > Acked-by: Kirill Tkhai > Acked-by: Vlastimil Babka > Signed-off-by: Yang Shi Reviewed-by: Shakeel Butt