Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp829593imm; Wed, 23 May 2018 06:16:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpt5VJmQKFkqkp1xkncjpnW3B/VVN1loKfJ6KHqNk4SwGK2DV4mf9obNTa8B8rmIHQokuJX X-Received: by 2002:a17:902:8bcb:: with SMTP id r11-v6mr2945415plo.51.1527081410088; Wed, 23 May 2018 06:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527081410; cv=none; d=google.com; s=arc-20160816; b=q7i8VjkjZY5PQ4kfI7V5Q1mYklzcAnNelr38fuM6t6OaypGbF1YSL6UuTIABW7xD/Y whidPOGSRt0WP5+2KZkZ5AdAOt/uUtsFMcFfr/7lHrdasCdizOgKjfIW/Of1rkvp6Bel KV7mPGh7vG1B9ETCI5IgLQ0FfELVJY1mjucPosRv9v6IU3YbMMmeefTatX3ciKN+nAQE HcXmTLpBkUWXhVAchXUOFK5MgzryQydJKf2zIcsVV4RbogM8r5+oH8iA/dCWTgafVlXk VINFHDbkoOrU1C4EoOv8CsNXXzMB9wDyuDrObuBZXmqMqpnCtqcvqNyHLhpznca6I7GB T+6Q== 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:arc-authentication-results; bh=bXtgLOdeHshlQpEJ7jqwOj/3dz2Qx0kbmqkNFXF9mCM=; b=Qbck2xes/dbnNZuB1yaDQKn1S8NbgYUSzioi8Cw4eEXCDL1zpOfulA0r9M8X4gAeLW 2/J9OzOnn3H2tgKvcVleUDjNevLSHUSRerylcWks2o4WVNYZtP0LCIA1qF4ZxBAyc+Lk p+4+WG96PyvZuD5KtAGlBqTjvo84NjG601/iMqnroj/KDUm0WZURE3c+paccHyfxe6PA SqohWM2xrjC5HaUmnxjLBGGs+lOfeCr7NWLnsUvWyIhuEWmNXbQBw3oCgRG0JW3IYSlc HuU0RWJBNE58TSPjqfzrFbxdQqpUiAQ04KiVPScHRTEf0fQRaPP6lBSoTmT3yTIpyY49 m6jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=GFMdoa1r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si18687749pfk.311.2018.05.23.06.16.35; Wed, 23 May 2018 06:16:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=GFMdoa1r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932990AbeEWNPv (ORCPT + 99 others); Wed, 23 May 2018 09:15:51 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:51818 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932875AbeEWNPt (ORCPT ); Wed, 23 May 2018 09:15:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bXtgLOdeHshlQpEJ7jqwOj/3dz2Qx0kbmqkNFXF9mCM=; b=GFMdoa1rH5o9/YzxQ8gP2VzjiT nKDK1+Ntr9KeM2afQ56UUum/sKvQdMM1rM/sPvoDgwDuXf2RcK/HrNFlZph1ZX51JWWRVxPL9c50z 9CHOJRYYkAVmmqnuIuTQAy5FBX6JA1NZhvx+/Ta+rlsE56YwPLGfJutexzRaaW/kLmEA=; Date: Wed, 23 May 2018 09:17:47 -0400 From: Johannes Weiner To: Vinayak Menon Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, cgroups@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Andrew Morton , Tejun Heo , Balbir Singh , Mike Galbraith , Oliver Yang , Shakeel Butt , xxx xxx , Taras Kondratiuk , Daniel Walker , Ruslan Ruslichenko , kernel-team@fb.com Subject: Re: [PATCH 6/7] psi: pressure stall information for CPU, memory, and IO Message-ID: <20180523131747.GA4086@cmpxchg.org> References: <20180507210135.1823-1-hannes@cmpxchg.org> <20180507210135.1823-7-hannes@cmpxchg.org> <87060553-2e09-2e2a-13a2-a91345d6df30@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87060553-2e09-2e2a-13a2-a91345d6df30@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 04:33:24PM +0530, Vinayak Menon wrote: > On 5/8/2018 2:31 AM, Johannes Weiner wrote: > > + /* Kick the stats aggregation worker if it's gone to sleep */ > > + if (!delayed_work_pending(&group->clock_work)) > > This causes a crash when the work is scheduled before system_wq is up. In my case when the first > schedule was called from kthreadd. And I had to do this to make it work. > if (keventd_up() && !delayed_work_pending(&group->clock_work)) > > > + schedule_delayed_work(&group->clock_work, MY_LOAD_FREQ); I was trying to figure out how this is possible, and it didn't make sense because we do initialize the system_wq way before kthreadd. Did you by any chance backport this to a pre-4.10 kernel which does not have 3347fa092821 ("workqueue: make workqueue available early during boot") yet? > > +void psi_task_change(struct task_struct *task, u64 now, int clear, int set) > > +{ > > + struct cgroup *cgroup, *parent; > > unused variables They're used in the next patch, I'll fix that up. Thanks