Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4519801rwl; Tue, 28 Mar 2023 08:00:45 -0700 (PDT) X-Google-Smtp-Source: AKy350Z95sKYz79qMHVE1iwdhSbYfOf/vztiNzcP6SFYkITrfRJkO18hVHraIAfu6Z4zwH2JsFxQ X-Received: by 2002:a17:906:d1d5:b0:93f:5170:c3d7 with SMTP id bs21-20020a170906d1d500b0093f5170c3d7mr13053204ejb.47.1680015645575; Tue, 28 Mar 2023 08:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680015645; cv=none; d=google.com; s=arc-20160816; b=Vrr+yi067gLyyETIWkn5KHWbBLFNEIjbt6iJgLS7f8shtI4Oryo52jxSk5U4iRQAkn uyf+OhgOker4qQt6voWxk8rLbIJK/NYaRtlxkmmqzOGLNg97gnwYcjH+XJaXuwF70yk4 YooJkKWu1G74jDD0lnxg1qARJQPW+S8P90FHQPKdid8F4CTIy24DgUSYfHQHC6jWghPS YEcV6Salq9MiOSOwIEPh21QY6QWZuzojV2CKUWjjTy+5fyx5eANZWVkXTYjQWRu6qeG3 HmEFjgpOjJmTmszgZEaZwOx066jOn9SDv8QsN2FI8gMO26g3j8729NhK2AjCc/J5Dl0G etRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=n/Tr76xWiRdPhCzh2iAIz1ngMVJemqmUsrV57MPqNeE=; b=QZRqBCfzvxqnMcIBxfWnQ3in952XtUfckOjlIMPl7EI2AcXO1uK5eA/jiHplMrUdyV Tor90b7fUFa+ybwQG5fYhO878CgZCjtcm1V11wYSJTf5I03OQe2Fz9bUUILRAVFYKMsh g9Up3PrC5rF8R/nDn61Lz21/n97aMlY3tVh1uoXxcIjvbGRbXiRx6GdbMGVIgYhTGnq7 H8CWgVCbxecUNIuVG4TquflgOqdY6hPCSgfGYZiktg+luYXMzpNw8bK3q810Y3o98P7M 8GRNBnj2PxIyZnjfkBNmiR9ZwLvq9BiqdYbkpVW2auS7a2DDS9LFfhDFBxNa34Sbxz+0 rrHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Tt1MpwBC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a170906285700b0092a13a79360si24366195ejc.655.2023.03.28.08.00.01; Tue, 28 Mar 2023 08:00:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Tt1MpwBC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233737AbjC1O7j (ORCPT + 99 others); Tue, 28 Mar 2023 10:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233731AbjC1O7b (ORCPT ); Tue, 28 Mar 2023 10:59:31 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07437E386 for ; Tue, 28 Mar 2023 07:59:16 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id k17so15387396ybm.11 for ; Tue, 28 Mar 2023 07:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680015555; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=n/Tr76xWiRdPhCzh2iAIz1ngMVJemqmUsrV57MPqNeE=; b=Tt1MpwBCckGfBRJPyJn7mnYIufUfVxu0osm9Xuq8gDBzp9Zl5SijHD6x4KQjbrMWEh cR4itExVYXUY8HTQuYCWuV5Rg6H125SdaHSCPAvUlKamplxStCH4rjE2/WcnHTjKhjrt 038rfwwfndQ2ou7fJtK3qBflN/A1iDRlkq81JX+Z7insN5nb1uTL0Uo01n0XraIao7M2 Fdp9ucU3Ljn6qpuDyKhjPEtSctWImYf+1VP6nPOE2U4SSXgKWYIn4QDlVxtNK1zY5mgr bLTFWCgmCGlE6IuJslMe1IS18hr0AuFjkuVwxblk3dP0+AkaQl8W95dVHmZXdHKaN7fx PZeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680015555; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n/Tr76xWiRdPhCzh2iAIz1ngMVJemqmUsrV57MPqNeE=; b=eptXsioA7GaO8Mj81gncgt8JRf8vvnTBolaxibFvuXEHFxMcf95e3czDaTtwWiD7iS gNmCthlfpgef3BVMJVKWAAGJErdIPO3oz9AWjiiOOmg+o6MZtfwOTDD0dO8QsEEMMGBM tkgr9WOzpHzpvU16mJTQWJGjfCz/NHTsgdEio3n3Q0T3vnFTTF5gDTAPj7kqfmjbKWCR H3jSSskM1kAnPGz5zTMPl6DG2CgpyBx5NakAw1bcC5E4TgK26sxaB32vfJLo06Jjj69d 3lbnl7rgWIeL6hYW7aZ97lzW7POZdcktZNJ0FLehX+jegaiROsoQOs6iWeOsDkvDwo4y Pi5Q== X-Gm-Message-State: AAQBX9fgw6qHPkqHols50X+/s9Jj2G2+oHviAhEHGca77OnEG/NUyyc0 DehWFkPgg7qVOTA1lSzgaUoSluwC6F/xNFGJZjYXh1K3YHCH3BB1yXE= X-Received: by 2002:a05:6902:1108:b0:b6d:fc53:c5c0 with SMTP id o8-20020a056902110800b00b6dfc53c5c0mr13259448ybu.1.1680015555044; Tue, 28 Mar 2023 07:59:15 -0700 (PDT) MIME-Version: 1.0 References: <20230328061638.203420-1-yosryahmed@google.com> <20230328061638.203420-5-yosryahmed@google.com> In-Reply-To: <20230328061638.203420-5-yosryahmed@google.com> From: Shakeel Butt Date: Tue, 28 Mar 2023 07:59:04 -0700 Message-ID: Subject: Re: [PATCH v1 4/9] cgroup: rstat: add WARN_ON_ONCE() if flushing outside task context To: Yosry Ahmed Cc: Tejun Heo , Josef Bacik , Jens Axboe , Zefan Li , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Andrew Morton , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Vasily Averin , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 11:16=E2=80=AFPM Yosry Ahmed wrote: > > rstat flushing is too expensive to perform in irq context. > The previous patch removed the only context that may invoke an rstat > flush from irq context, add a WARN_ON_ONCE() to detect future > violations, or those that we are not aware of. > > Signed-off-by: Yosry Ahmed Reviewed-by: Shakeel Butt