Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1661878pxb; Wed, 20 Oct 2021 09:21:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf0ao2MzpKmT3DC66j5jgfixVkAj8dTuqlFit/NHR0yfQGYR96tOSQ/GtybTnlSzYk866S X-Received: by 2002:a62:1d14:0:b0:44d:3b0b:d027 with SMTP id d20-20020a621d14000000b0044d3b0bd027mr738168pfd.60.1634746881367; Wed, 20 Oct 2021 09:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634746881; cv=none; d=google.com; s=arc-20160816; b=YJON7ukh3wctiyTA8STmHUtb1RTPYe6o6GZcQQB7JxjzkZG1FiB2gVay0Bulb33aqI cX5CDYi3vgoG5OyfXZoEvS2OdakWXuRCIa1lAO/fJ2gGufk5ay2fv4/Y2LsoA4phLN8I VmxeKNjOmgyLSCmcqHVhIjCdvsD2YOLi+LPR/oABbowdYg6oUdGK0Ma6IkYeX1B+OyOw 8f0Et/hFPaxSVPFNsmeDRoxHd3+7iFBKSnURUBNOwmwvMa8LrGemIypI+FODNKPUmyhb HSq+AenDHgPk2NG99ZB+8R/NJOW+YmQxDu3iBZBY2yvovw2+5G7FJY9thlkFxntIEo4f gbLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=RVskMfLvnfzVUoBAQludYY3ucNcWYtl9QzD8dZHotuc=; b=hcZ9GyhgU6rLAU2lJH+xhFYEV5iPB0K4LE8U6N3bnGraf4p8Jju5O6W4tLMNXafNxb LNgRmyHVbUu5RzzHOrR70573vZZfjb5z9JePXwkYpBa1aKygbZ0fp3EmSuP5tUBnfd87 5M6VHR4wdtPat/c5kl7XngtFXc+/4PwbCCydz8CXr2DH0kaQJFDlVPq3SyHBuGnz0BoJ Yl0wT4SZ//HW6ThiTAOHah+MfYXRd+5jUNwn2d4K9tVZdIQLt+RTL7avu0meNO389xXA z8Nvnp3ytEQA32x+cW3PxWKWDaG7SYk8DJ1iXGIfETDHvXWks6EFPKXZ6baOHUs2og6q m5Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dZwm10x1; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si3662413pgv.433.2021.10.20.09.21.06; Wed, 20 Oct 2021 09:21:21 -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=@gmail.com header.s=20210112 header.b=dZwm10x1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231250AbhJTQWH (ORCPT + 99 others); Wed, 20 Oct 2021 12:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbhJTQWG (ORCPT ); Wed, 20 Oct 2021 12:22:06 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2D80C06161C; Wed, 20 Oct 2021 09:19:51 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id s136so19742688pgs.4; Wed, 20 Oct 2021 09:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RVskMfLvnfzVUoBAQludYY3ucNcWYtl9QzD8dZHotuc=; b=dZwm10x14hXd/CU/42z616E2cL27DnPxrxKJCzQxBTrEBHpRefPrZspEAHT+WWukeu 0zK0m0flZFLx3TrDTqY848TD1979D4y0xvM6xw7i+QlplgnCQV0rz0QnzVPrJaktzTRi dAl0jUYzJi2/ZMjbc6Z84GREyMV2wSHmcFu5Jp0ZuB5AtGpwfzpPSYYHyHuHzlLqeBty DL8yvBWci+iWuVgyvtuE1xjbGfYOGpZFpWcWjNF+tph3kK1xFpKYNFWokgtdSriHWMrW DLbesuA/8Bm9yaTH20Eq2I8JKbD6TQG2RnGTmayJBc+U4kmLGmZZQldzm5r63yiBkHAj ermA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=RVskMfLvnfzVUoBAQludYY3ucNcWYtl9QzD8dZHotuc=; b=wvDbK+fZIu8WfkcwoBlAkt70r9p+wCgTOhAwLdvyER4r2mg+rZnYaH5DjsGxlK+QFD BZVOSbWI73Nrl9xj5MFmrW+wAf/tyXHSnyknLJ86nVKAfFTeyeEYlj86tipzYkG//0pZ moXILbYog/m03yGQ651HAffi/yhAKxOZlzzeNop+a/EGYHz4YI8Ehfg8Aycx4jzzNgs0 YnyZIsH3zUVRViusECPkFSrF3OJaS7I+d8V3aCcl44gf2ioK383v/bGb7+iDR7nYQSMH Q39FEytuj3zieNlZPp0WGyN9TecTCJSC3/cWsPL2m7yKyt1uxRAb9Lz8HylQfyjzChSZ HLVw== X-Gm-Message-State: AOAM531skRjTWB0fpvyD5eNa6Kf5pBavdCYu+aX6OmEJXh44acDvCF9e tXgjZVn5Gj09AX/rUj4VBg5diICAeMCTSQ== X-Received: by 2002:aa7:9a1d:0:b0:44c:af89:e24 with SMTP id w29-20020aa79a1d000000b0044caf890e24mr771679pfj.12.1634746791100; Wed, 20 Oct 2021 09:19:51 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id i13sm2678730pgf.77.2021.10.20.09.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 09:19:50 -0700 (PDT) Sender: Tejun Heo Date: Wed, 20 Oct 2021 06:19:49 -1000 From: Tejun Heo To: Imran Khan Cc: jiangshanlai@gmail.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, rafael@kernel.org, pavel@ucw.cz, len.brown@intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [RFC PATCH v4] workqueue: Introduce show_one_worker_pool and show_one_workqueue. Message-ID: References: <20211020030900.321837-1-imran.f.khan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020030900.321837-1-imran.f.khan@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 02:09:00PM +1100, Imran Khan wrote: > Currently show_workqueue_state shows the state of all workqueues and of > all worker pools. In certain cases we may need to dump state of only a > specific workqueue or worker pool. For example in destroy_workqueue we > only need to show state of the workqueue which is getting destroyed. > > So rename show_workqueue_state to show_all_workqueues(to signify it > dumps state of all busy workqueues) and divide it into more granular > functions (show_one_workqueue and show_one_worker_pool), that would show > states of individual workqueues and worker pools and can be used in > cases such as the one mentioned above. > > Also, as mentioned earlier, make destroy_workqueue dump data pertaining > to only the workqueue that is being destroyed and make user(s) of > earlier interface(show_workqueue_state), use new interface > (show_all_workqueues). > > Signed-off-by: Imran Khan Applied to wq/for-5.16. Thank you. -- tejun