Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/804027/?format=api
{ "id": 804027, "url": "http://patchwork.ozlabs.org/api/patches/804027/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170821134951.18848-2-lvivier@redhat.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20170821134951.18848-2-lvivier@redhat.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170821134951.18848-2-lvivier@redhat.com/", "date": "2017-08-21T13:49:51", "name": "[2/2] blk-mq: don't use WORK_CPU_UNBOUND", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "41f716cc508864be94c0f17e42cbfeb84c265bbd", "submitter": { "id": 66421, "url": "http://patchwork.ozlabs.org/api/people/66421/?format=api", "name": "Laurent Vivier", "email": "lvivier@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170821134951.18848-2-lvivier@redhat.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/804027/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/804027/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xbZrR5tFWz9s78\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 21 Aug 2017 23:52:39 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xbZrR4rFPzDrKb\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 21 Aug 2017 23:52:39 +1000 (AEST)", "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xbZnL5VYMzDqZ7\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 21 Aug 2017 23:49:58 +1000 (AEST)", "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 083FC7F7D0;\n\tMon, 21 Aug 2017 13:49:57 +0000 (UTC)", "from thinkpad.redhat.com (ovpn-116-24.ams2.redhat.com\n\t[10.36.116.24])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 3E5D3702E8;\n\tMon, 21 Aug 2017 13:49:55 +0000 (UTC)" ], "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 083FC7F7D0", "Authentication-Results": [ "ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com", "ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=lvivier@redhat.com" ], "From": "Laurent Vivier <lvivier@redhat.com>", "To": "linux-kernel@vger.kernel.org", "Subject": "[PATCH 2/2] blk-mq: don't use WORK_CPU_UNBOUND", "Date": "Mon, 21 Aug 2017 15:49:51 +0200", "Message-Id": "<20170821134951.18848-2-lvivier@redhat.com>", "In-Reply-To": "<20170821134951.18848-1-lvivier@redhat.com>", "References": "<20170821134951.18848-1-lvivier@redhat.com>", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11", "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.28]); Mon, 21 Aug 2017 13:49:57 +0000 (UTC)", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Cc": "Jens Axboe <axboe@kernel.dk>, Lai Jiangshan <jiangshanlai@gmail.com>,\n\tlinux-block@vger.kernel.org, Tejun Heo <tj@kernel.org>,\n\tlinuxppc-dev@lists.ozlabs.org", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "cpumask is the list of CPUs present when the queue is built.\nIf a new CPU is hotplugged, this list is not updated,\nand when the scheduler asks for a CPU id, blk_mq_hctx_next_cpu()\ncan return WORK_CPU_UNBOUND.\nAnd in this case _blk_mq_run_hw_queue() can be executed by the new CPU\n(that is not present in cpumask) and raises the following warning:\n\n WARN_ON(!cpumask_test_cpu(raw_smp_processor_id(), hctx->cpumask) &&\n cpu_online(hctx->next_cpu));\n\nTo fix this problem, this patch modifies blk_mq_hctx_next_cpu()\nto only return a CPU id present in cpumask.\n\nSigned-off-by: Laurent Vivier <lvivier@redhat.com>\n---\n block/blk-mq.c | 3 ---\n 1 file changed, 3 deletions(-)", "diff": "diff --git a/block/blk-mq.c b/block/blk-mq.c\nindex 4603b115e234..bdac1e654814 100644\n--- a/block/blk-mq.c\n+++ b/block/blk-mq.c\n@@ -1126,9 +1126,6 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx)\n */\n static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx)\n {\n-\tif (hctx->queue->nr_hw_queues == 1)\n-\t\treturn WORK_CPU_UNBOUND;\n-\n \tif (--hctx->next_cpu_batch <= 0) {\n \t\tint next_cpu;\n \n", "prefixes": [ "2/2" ] }