Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp39617pxk; Tue, 15 Sep 2020 19:40:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1m2DjicgkRN5N7Etseuq7bAMk/DWnmWX7JixwkrIfT7X5cfIVIeYPMD+SnE7KaOPmcmtn X-Received: by 2002:a05:6402:180a:: with SMTP id g10mr25078506edy.18.1600224032607; Tue, 15 Sep 2020 19:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600224032; cv=none; d=google.com; s=arc-20160816; b=G2eATZqCPiVLJxp3txK0FDzSzV2s5hPfBFfSN3e2HbdbFrRNzZdUHQ9U8Af5oy64I4 2HIXAc6GgiXLTz1sHX4BzlUfesOz3Uaqoj8V79ZVlJcdCEokbpyp1HMfaiMNMj2SoHMN k70ypdVtwJmuC9iF8aW1NcefIf/zOCrZwTFB0317rf7h8brq+hl3Lub6Z/BISDcgJ6vr hLPEi1Wc1UOHPRXs413qaSCwx7+JWHd5T/8kzHMEvoACATE8oZCXXbjc/VZirzr0rxRQ 97NsZ5wCk8GfaWtlXquoHxf9ESo1Nukyqui5kWYlZmi54knsPzJICAPhNvooW+G2+SBk N6SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fv8yt3Mc4zl4f94N5JDsxGnqubAPR0A1k38BepP4lq8=; b=G+2A/TjARPvHRe65EqHEHjk94md/68yorHo2zGlKc3CK5reDzRQtapjdO/jfXMH/CM fEx5XeJKFwMJEt/yOrkykjf0OZHj0Mp7JHSjxwyqQE0WuTxP87WPA+BACoGoQ4pgvsM/ zWS371Z5OGJreknIgKTi3R7gnO/F2qeq21NoO7UqKrvssVP6QhtYtg7kYPu7Ez3I/eJ1 YbcTy5RK4P+gQ8DwfyvFQxQYKUCoPmsnp1Pk8qcemE4wlyciwqL1RQk/w5YrYUUrb+mD sU9tVDM4It5qDYCVoDCva32uiJSwHuM/aaE2azRjUWq9m3Qviga/3CLqBYAJNcDwTcg3 DwPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=LsoMQ9jg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si10731502edv.98.2020.09.15.19.40.09; Tue, 15 Sep 2020 19:40:32 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=LsoMQ9jg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbgIPChC (ORCPT + 99 others); Tue, 15 Sep 2020 22:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbgIPChB (ORCPT ); Tue, 15 Sep 2020 22:37:01 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D3AC06174A for ; Tue, 15 Sep 2020 19:37:00 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id a15so4604819ljk.2 for ; Tue, 15 Sep 2020 19:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fv8yt3Mc4zl4f94N5JDsxGnqubAPR0A1k38BepP4lq8=; b=LsoMQ9jgoUVYemW5jeO9ZrjqVwiOIoBF/niIFvkCZZCE3WW2cGKEwmoLP2gUobuZUG iie+zJIMmfknwsDyXecyN0xYhoF45QgIeLyg2ZKVkQJKJz1AoKnT1CJS/VcSlmM27vPC FYfZvV4k6MVQMIpapJXFEF3vZ39QvJvF0ZW4LPqdr06CEHbaczP8kGyPLIXAn0w+ZrAa gjnfeNeID89L1DSP3hHtBC2NtCmfksQdpxbuHlLMZgFq9QGm5Q/GapYBtCqED2L+8I0N zp50Jv6CteM0WB12JdYId4TQ0AOf7dLULYFDZGJ6WkeLwCuwbOcBkZWxNJbA8epw0j6r cyWQ== 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=fv8yt3Mc4zl4f94N5JDsxGnqubAPR0A1k38BepP4lq8=; b=psp/hyAMJdt0ig5vHlZgFFqRqVE2WcuzqX/+TKOjsJRk86VXnah+TrFsnRL5ZxjW4E EJ4/N6hTeRtxF8O9PM/Q9AsP6RmUKvyz2xt4cOUc0E1SybfOuE/jKojcFMFIBnab6lLd Ltexm7U+VRFSJcYYswXeqYMuCVegfet1pttlvrzPkaJapvJaiGOBIMtx0Hr2wwyd+mM2 06YVyvevEWaAGW5jG0aGT8Si26l6rUkZNTV6jJqOKGMX/QzG+BaJAxcSp7FoohZHk2s0 CKrL66VwuL0hjqRrpESBn4wqzkFFj3r7nkL+DaRQzGFoSPgGET29dznMtKtsgI6Je9lk PkiQ== X-Gm-Message-State: AOAM533H5CZ7NIKQZ/sVGFYoo9mF8V+or1IR9TbsLPhYDASSLS8JmHAO x0NVm19Yorat2PMN7GnwMFeFW/Yg1vX0J/Ol5XAUPA== X-Received: by 2002:a2e:9089:: with SMTP id l9mr8683636ljg.408.1600223819202; Tue, 15 Sep 2020 19:36:59 -0700 (PDT) MIME-Version: 1.0 References: <20200915132741.84869-1-zangchunxin@bytedance.com> <20200915144737.GA2581123@chrisdown.name> <20200915145533.GG3736@dhcp22.suse.cz> <20200915162604.GB2581123@chrisdown.name> In-Reply-To: <20200915162604.GB2581123@chrisdown.name> From: Chunxin Zang Date: Wed, 16 Sep 2020 10:36:48 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v4] mm/vmscan: add a fatal signals check in drop_slab_node To: Chris Down Cc: Michal Hocko , Andrew Morton , Linux Memory Management List , LKML , Muchun Song Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 16, 2020 at 12:26 AM Chris Down wrote: > > Michal Hocko writes: > >On Tue 15-09-20 15:47:37, Chris Down wrote: > >> zangchunxin@bytedance.com writes: > >> > + if (signal_pending(current)) > >> > + return; > >> > >> This doesn't match your patch title, please update it. :-) > > > >I have to admit I have completely missed this and I think that this > >should better be fatal_signal_pending because that would make sure that > >the userspace will not see an incomplete operation. This is a general > >practice for other bail outs as well. > > Oh sorry, to be clear, I meant the patch should match the title, not the other > way around. My apologies about that. In my first version of patch, it's 'fatal_signal_pending'. But in this version, I used the wrong branch. I will update it now. Best wishes Chunxin