From patchwork Fri Oct 9 03:25:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xunlei Pang X-Patchwork-Id: 54680 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 012D922FF4 for ; Fri, 9 Oct 2015 03:26:05 +0000 (UTC) Received: by lbwr8 with SMTP id r8sf32968193lbw.0 for ; Thu, 08 Oct 2015 20:26:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=JqdwguIHld6NOEMNwXN4Ic1MGJzOpyUyZGBa5gv7xJA=; b=PcSmK9x9acqWW8TC/8LhnX8myL9XA/eJOgozGojcUObZQtGRva/h/Tke0uswWJbS2/ IDHr1l4SaIGNyetCt4MFGNm3fKW0WXxPtZx+3h+OPZ+fuxCK+cJnWkSHxxtoiE6gi6L3 Tus3j/cc2ejjw0V7saAPufyr3Ej87GI5WORRUd4/0RWEtmZTf1eb5wIoOkAl+AQJ6jFD J6sq//EqkGozrGA2DNB/85ZgyX+K+A6c5SnYsAO0t0Wlq9OIQYYJYPZKVG8ZyJCm/y8+ ouQRXBNDl2w16nnNvVYqwkgE4lAA1qjRaUNAQbYKBNMFovBiDao6VphVVH4ASCxrClEe 7d8g== X-Gm-Message-State: ALoCoQl6Q+lcIwdD/eNNTx5NEelq25RU6r8wr3Q3jtG5J7jLNK/roTSRCm2lA5zLBGA3S9V+gtpD X-Received: by 10.194.83.169 with SMTP id r9mr2088890wjy.6.1444361164463; Thu, 08 Oct 2015 20:26:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.31.207 with SMTP id f198ls264337lff.31.gmail; Thu, 08 Oct 2015 20:26:04 -0700 (PDT) X-Received: by 10.25.89.70 with SMTP id n67mr3408179lfb.87.1444361164283; Thu, 08 Oct 2015 20:26:04 -0700 (PDT) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com. [2a00:1450:4010:c04::230]) by mx.google.com with ESMTPS id c7si32217546lbd.63.2015.10.08.20.26.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 20:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::230 as permitted sender) client-ip=2a00:1450:4010:c04::230; Received: by lbwr8 with SMTP id r8so66731569lbw.2 for ; Thu, 08 Oct 2015 20:26:03 -0700 (PDT) X-Received: by 10.112.202.35 with SMTP id kf3mr5328946lbc.19.1444361163768; Thu, 08 Oct 2015 20:26:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp922859lbq; Thu, 8 Oct 2015 20:26:02 -0700 (PDT) X-Received: by 10.68.196.161 with SMTP id in1mr12208115pbc.127.1444361162205; Thu, 08 Oct 2015 20:26:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id et1si71426816pbb.49.2015.10.08.20.26.00; Thu, 08 Oct 2015 20:26:02 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755074AbbJIDZP (ORCPT + 30 others); Thu, 8 Oct 2015 23:25:15 -0400 Received: from m50-111.126.com ([123.125.50.111]:52003 "EHLO m50-111.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbbJIDZN (ORCPT ); Thu, 8 Oct 2015 23:25:13 -0400 Received: from localhost.localdomain (unknown [210.21.223.3]) by smtp5 (Coremail) with SMTP id jtKowACXMHRZMxdWnSj3BQ--.18083S3; Fri, 09 Oct 2015 11:24:20 +0800 (CST) From: Xunlei Pang To: linux-kernel@vger.kernel.org Cc: linux-raid@vger.kernel.org, Alasdair Kergon , Mike Snitzer , Mikulas Patocka , Neil Brown , Tejun Heo , Xunlei Pang Subject: [PATCH] md: workqueue: Remove WQ_CPU_INTENSIVE from unbound workqueue allocations Date: Fri, 9 Oct 2015 11:25:35 +0800 Message-Id: <1444361135-22624-1-git-send-email-xlpang@126.com> X-Mailer: git-send-email 1.9.1 X-CM-TRANSID: jtKowACXMHRZMxdWnSj3BQ--.18083S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7AF4UArW5uFykXr4UtF47Arb_yoW8KF47pF s0qFy5XrW5tw47G3s0k3W8ua13K3WUKr9rCFWa9ws5ZF15uFyrZ3W2yFW5urWDAF95JF4a vF48JFsrC3WYy3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jqGQhUUUUU= X-Originating-IP: [210.21.223.3] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbiXASOv1R0ZC-dUwAAsM Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: xlpang@126.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::230 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@126.com; dmarc=fail (p=NONE dis=NONE) header.from=126.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Xunlei Pang WQ_CPU_INTENSIVE is meaningless for the unbound workqueue, so remove it. Signed-off-by: Xunlei Pang Acked-by: Tejun Heo --- drivers/md/dm-crypt.c | 4 ++-- drivers/md/dm-verity.c | 3 ++- drivers/md/raid5.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 4b3b6f8..56b2560 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -1871,8 +1871,8 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv) if (test_bit(DM_CRYPT_SAME_CPU, &cc->flags)) cc->crypt_queue = alloc_workqueue("kcryptd", WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM, 1); else - cc->crypt_queue = alloc_workqueue("kcryptd", WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM | WQ_UNBOUND, - num_online_cpus()); + cc->crypt_queue = alloc_workqueue("kcryptd", + WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus()); if (!cc->crypt_queue) { ti->error = "Couldn't create kcryptd queue"; goto bad; diff --git a/drivers/md/dm-verity.c b/drivers/md/dm-verity.c index edc624b..f2fc693 100644 --- a/drivers/md/dm-verity.c +++ b/drivers/md/dm-verity.c @@ -942,7 +942,8 @@ static int verity_ctr(struct dm_target *ti, unsigned argc, char **argv) ti->per_bio_data_size = roundup(sizeof(struct dm_verity_io) + v->shash_descsize + v->digest_size * 2, __alignof__(struct dm_verity_io)); /* WQ_UNBOUND greatly improves performance when running on ramdisk */ - v->verify_wq = alloc_workqueue("kverityd", WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus()); + v->verify_wq = alloc_workqueue("kverityd", + WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus()); if (!v->verify_wq) { ti->error = "Cannot allocate workqueue"; r = -ENOMEM; diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 49bb8d3..2a25af8 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -7840,7 +7840,7 @@ static struct md_personality raid4_personality = static int __init raid5_init(void) { raid5_wq = alloc_workqueue("raid5wq", - WQ_UNBOUND|WQ_MEM_RECLAIM|WQ_CPU_INTENSIVE|WQ_SYSFS, 0); + WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_SYSFS, 0); if (!raid5_wq) return -ENOMEM; register_md_personality(&raid6_personality);