Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp633838pxk; Wed, 9 Sep 2020 14:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz70sqxzjlyGWnLVBSV6PLsPpXSdIUrLnzs3QJvNNNyxHMSplOXfnDaxxyHhYJ9+eoEBFA X-Received: by 2002:a17:906:d936:: with SMTP id rn22mr5772733ejb.4.1599688145878; Wed, 09 Sep 2020 14:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599688145; cv=none; d=google.com; s=arc-20160816; b=nJVixWbYdmBxLtCPXq0UnLmAdPLfYo7BJnfLN9IGlV/AqQfcv080Q0YxSz8MVaVTmh NisBztSdcrqzGKCBMLjdgAyvhm3YNntg6+ep6aVilOYL2yJbreF4SQ6NyDJGrwQJLxEI M+SRd2FcrQOZRDVOUtBIUR3cwUeuN+In6nX6AjBq153xdS2IMA39NVkvP8Zp/HnMcv14 eNPLR+U/6CsxTUnWbx0x9E/jA7hlsM3vBOfFHe7TwRYdHd6mVjLWS3YZkpfe0zQ1Bgfe N8qFPz9L03fF8qm7yufLj62W5b4ikunTViVfjuLo0hscF89upFdadykHpHGW8g5Hy8RZ kkig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xtYCmEQsba5nU7Adim+7cup2FZgfTbjzNecUaihW994=; b=XqUkbE6fzXI8yDLiq727XXp2q9RIkms7t3iT9kO7ejJBi/4jKjKOuBZmKEQ/ajMRW3 Gv3yvKaLPBu+aOoUKRxI+QLHDbVs6vXPzTYsGhzSIhwWT3ovbBbDOP2nIpcfUa7TCLTM KwtVi8nzCpJrmwLJ20f8VbM22vIOxycr6O+eHxA51f0QMK3ap2/Qcpp/enzlDlJVzHVW sI8XtSkQSZ8G2db1OqY84iHEetecKL+EQy2NNX/nlcM3UkZfBUWASil6QA6y0HmwY1h5 yMgkZPavMvsqPa+MruNUvS4zn5MfYEsjlrhRfOnXEx8n+j9D/qaLOLMWnHKeT+do2l58 3GyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=VdNLtAuk; 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=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si2225210ejy.486.2020.09.09.14.48.41; Wed, 09 Sep 2020 14:49:05 -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=@chrisdown.name header.s=google header.b=VdNLtAuk; 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=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729521AbgIIVrb (ORCPT + 99 others); Wed, 9 Sep 2020 17:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728443AbgIIVr2 (ORCPT ); Wed, 9 Sep 2020 17:47:28 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0DFDC061573 for ; Wed, 9 Sep 2020 14:47:27 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id h1so2356950qvo.9 for ; Wed, 09 Sep 2020 14:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xtYCmEQsba5nU7Adim+7cup2FZgfTbjzNecUaihW994=; b=VdNLtAuk7HKQaA7HqX+LUbtgZnSfFuvpQaCBggc+pT4+BxuJlTRwuqxoMZzquD8MVy HB71euqA+l8n4Lx83SIe9PIEDFBXbJGXaIOeuuLOK03olUSLOHq9L1U77qwTFu0QQL91 zGlWwjfLThu0RMYywzur71reHHWY0v7N/vG+k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xtYCmEQsba5nU7Adim+7cup2FZgfTbjzNecUaihW994=; b=cHHHTk5sqJkZI8iYPq58mNnvz3iXK1HsXpnNOtIOLnW7lh3OokUxsHd6AukZ2Qxo7Q Bw/+zBIfufcZ65070AxAPB7uzN4OFo22CI04biahcFfKp3Gwat3/zvKrCw8crtfAAjt3 y4Pllk236RSDQRWxfMi4Bf4IHNHGjlcTCACvNqvfcfbW1RGk6MLxEkLt3bKGyDY0RTsr vWLSvWj9mYi2BHwR0tYacb8xIVAo4JIB5TbYLOcwkbMOFtJwiEpD+/sBdUoWo4OXo4S2 SQV/RoJDuL5XQfnOFtBb85SjGZ5MjdbSZzt2M9mv09wABqa8+n7K47WIcKke+n9g6NQr Fh1Q== X-Gm-Message-State: AOAM533hnaQpkZAxGrQ79YFffxn4gtiXIJTi9ncwsQQ0YGUzamOpKUQv oVpKpHYGmrEUpWhJ2UJrjwu/Wg== X-Received: by 2002:ad4:5745:: with SMTP id q5mr6043849qvx.29.1599688046933; Wed, 09 Sep 2020 14:47:26 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:16fd]) by smtp.gmail.com with ESMTPSA id 7sm4059450qkh.60.2020.09.09.14.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 14:47:26 -0700 (PDT) Date: Wed, 9 Sep 2020 22:47:24 +0100 From: Chris Down To: Vlastimil Babka Cc: zangchunxin@bytedance.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song Subject: Re: [PATCH v2] mm/vmscan: fix infinite loop in drop_slab_node Message-ID: <20200909214724.GA1577471@chrisdown.name> References: <20200909152047.27905-1-zangchunxin@bytedance.com> <16906d44-9e3c-76a1-f1a9-ced61e865467@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <16906d44-9e3c-76a1-f1a9-ced61e865467@suse.cz> User-Agent: Mutt/1.14.6 (2020-07-11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vlastimil Babka writes: >- Exit also on other signals such as SIGABRT, SIGTERM? If I write to drop_caches >and think it's too long, I would prefer to kill it by ctrl-c and not just kill Oh dear, fatal_signal_pending() doesn't consider cases with no more userspace instructions due to SIG_DFL on TERM/INT etc, that seems misleading :-( I had (naively) believed it internally checks the same set as TASK_KILLABLE. Chuxin, Muchun, can you please make it work using TASK_KILLABLE in a similar way to how schedule_timeout_killable and friends do it instead, so that other signals will be caught?