Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2738213pxb; Mon, 31 Jan 2022 03:16:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWlwIxlq/0sz62few52FM0e79u4ahiaEYjsbAF+QbGzSGXWdL+VGt+V7kIzghdtPjrrg1L X-Received: by 2002:a05:6402:520e:: with SMTP id s14mr19816973edd.401.1643627819513; Mon, 31 Jan 2022 03:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627819; cv=none; d=google.com; s=arc-20160816; b=Fax9MAx9yP8xP96D2M3CTpgTooLzZyzpsEPdsHU4lXNQ7RjUzQufMM1omVjTLRYqK7 A3VQXsDsPbJz5Fq9X5yaTXeCZzI6uNtOCh4t1bW1iBxrh17xyu7N0w6K2X/eiQk7679a d8N5NjH2GcKT9BZlPO1O4Tz5ldjnC5iFNMKBBbdTYv7LQYSU+04nZdzLzzpgCWbwHQxq kKN90Guu/UKy71mjaYALQEzNxi6blDaACc0+MdKoO57hiHhBouoPNTxhwteUwK5WO0w4 Z264r3aoCrna3kNJDLK31tW5R2wA6SezszbMSORXmbxuT/iELvLo/ZhH2UoT9wZnPYQ2 ovFQ== 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=UGBFjinD6yJ5HceIOydMt3QOO6lels/1FGluycv/zYc=; b=eT+8FWjXwnmWTSHwC6NS9s3W8qEbHRA7c1duXYz30q+SalGoXdzCS5/LLbFcHOxKo1 XVPiZFMnt2nRHKXTaLybbOWCO+kcVxvTfCyQBwPqfFzSkGGmcYLsxAgLpomdqMFn3/z7 5qHf/AcHpPUYl4IzfVDnHQW/ieyArA8PBaSlxIikIt0ZsJ0TMViBgMbcwTSmn8IAptvZ jgL1VJe9ZDxLAIJlc4DYj1KugdGrwRc20GxaIpYfB0ptCYtbwvpzLyJC/+amEclxBRD3 hjz6UU6KIRQ5GtLeP8t2YvFqovyENjnPekUE/bsuURcrH+OSfU0vu+yiH64vfxvSmnPe VXHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G02sjb+2; 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 y16si4421476edc.615.2022.01.31.03.16.34; Mon, 31 Jan 2022 03:16:59 -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=20210112 header.b=G02sjb+2; 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 S1350049AbiA1QUX (ORCPT + 99 others); Fri, 28 Jan 2022 11:20:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350046AbiA1QUS (ORCPT ); Fri, 28 Jan 2022 11:20:18 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FBA1C061747 for ; Fri, 28 Jan 2022 08:20:18 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id u14so12749141lfo.11 for ; Fri, 28 Jan 2022 08:20:17 -0800 (PST) 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=UGBFjinD6yJ5HceIOydMt3QOO6lels/1FGluycv/zYc=; b=G02sjb+2szznjNomETifI9YkohtNQ5Ie4jFYsqRjS68XxVJWgCSgGyKGgbYaUAJam/ 2xwhNM3jsb1fqTgx1OdfQ+Qlrmsp9Xw1Danw3gmDcQdfs/l1nlJ4ZBl6eDIpdDTeq35O cm7dJ1AO4KG1npRR9zOw1Din8StBatdTPzoQyoEp+DKQmy4z++cNDw+iZWOBd+o5gLqn JY3siIf4mZqdrMjjR4w2BrtqKz6YK2O0HN7DI6RBicicwMku23XLJNbo38QDFrXXOQ0q 6AGzxq2sxVohsWJrugkib4llBEsYOugitESKemCQ874EGK4IzUkwkPhwuqtIQE7lIbB6 LZ8w== 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=UGBFjinD6yJ5HceIOydMt3QOO6lels/1FGluycv/zYc=; b=wTL/NvUswcz8OvgV5krYfcV9TfLygqkxAZ1J6YI8IIRZyuZELAQvXLZ0PJPO+VeIhV jNwn1eSxaglvgeXzucXceniTOtRBB/DZjk0oFhiAyVn0+CWRjKYfgIR8QsFuO6r/9QVs GKF04ucxQsRo96+IJW4Rq1YQDLGk+oCClo+DF78drigvIZid2se5edHVakUYRuRrIAMI MLbDt+WkjS/EpGS0PrEPM/bT1qhYuJd1wKs4k5T/URZYVWr2KqhAzLrSDm3g7gwOvdpQ zyEZu8Hv4MIClJarOWr5TiQT/H740cva2Q+1WT5TRAPQvYW9xilaVBJyOS1e9YhivKGf plUw== X-Gm-Message-State: AOAM531WoK5uy4EW0oELu19mo+TUSd7XQUzsKSdO2AKwErJVO8K+7I4a 6F45VwIDO/FT0Y2Bx+lfUmWKJcy2c/ajAfe5sq/k3g== X-Received: by 2002:ac2:5095:: with SMTP id f21mr6697631lfm.20.1643386816184; Fri, 28 Jan 2022 08:20:16 -0800 (PST) MIME-Version: 1.0 References: <20220127162636.3461256-1-shakeelb@google.com> In-Reply-To: From: Shakeel Butt Date: Fri, 28 Jan 2022 08:20:04 -0800 Message-ID: Subject: Re: [PATCH] memcg: replace in_interrupt() with !in_task() To: Michal Hocko Cc: Vasily Averin , Johannes Weiner , Roman Gushchin , Andrew Morton , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 4:23 AM Michal Hocko wrote: > > On Thu 27-01-22 08:26:36, Shakeel Butt wrote: > > Replace the deprecated in_interrupt() with !in_task() because > > in_interrupt() returns true for BH disabled even if the call happens in > > the task context. in_task() is the right interface to differentiate > > task context from NMI, hard IRQ and softirq contexts. > > Makes sense. I do not think this will have any visible effect. Except > for removing a deprecated call, right? Correct, that is my understanding as well.