Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810792/?format=api
{ "id": 810792, "url": "http://patchwork.ozlabs.org/api/patches/810792/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170906205306.10541-3-sthemmin@microsoft.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170906205306.10541-3-sthemmin@microsoft.com>", "list_archive_url": null, "date": "2017-09-06T20:53:06", "name": "[v2,net-next,2/2] hv_netvsc: avoid unnecessary wakeups on subchannel creation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "8a2faae788b987c9a9d7e5fbbeafa26d9eed0a55", "submitter": { "id": 21389, "url": "http://patchwork.ozlabs.org/api/people/21389/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170906205306.10541-3-sthemmin@microsoft.com/mbox/", "series": [ { "id": 1878, "url": "http://patchwork.ozlabs.org/api/series/1878/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1878", "date": "2017-09-06T20:53:06", "name": "hv_netvsc: sub channel initialization fixes", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/1878/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810792/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810792/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=networkplumber-org.20150623.gappssmtp.com\n\theader.i=@networkplumber-org.20150623.gappssmtp.com\n\theader.b=\"2H9dxFbK\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xnbQY3bGPz9sRY\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 7 Sep 2017 06:53:25 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753285AbdIFUxV (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 6 Sep 2017 16:53:21 -0400", "from mail-pf0-f171.google.com ([209.85.192.171]:34557 \"EHLO\n\tmail-pf0-f171.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1753242AbdIFUxS (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 6 Sep 2017 16:53:18 -0400", "by mail-pf0-f171.google.com with SMTP id e1so583448pfk.1\n\tfor <netdev@vger.kernel.org>; Wed, 06 Sep 2017 13:53:18 -0700 (PDT)", "from xeon-e3.lan (76-14-207-240.or.wavecable.com. [76.14.207.240])\n\tby smtp.gmail.com with ESMTPSA id\n\tx130sm841171pfd.65.2017.09.06.13.53.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 06 Sep 2017 13:53:16 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=nwWiPdGXUIYuzNeW+ojLSbHRKc/FIAPfRnvONl0TMXI=;\n\tb=2H9dxFbKqWGkPaNf0j5UVGn/DpNLxNenZMIUzPAdDr4UlaogifiWAjTBkBhSyEU67f\n\tWTuX6hC6uZeI6kNfdSfbJi5jzDk2qWZjdYZyyeqqtfmQMWjilYKDQaEp+IdhyrDn593L\n\twzrMWaJsEjj1UgMJK7nqOH+1/9O4SLj1wPDuQ/Dc1Bwy6qeRzeYg2q5vcT6kX5QOIF+W\n\tcvrJu4L69VFrZbYwvZciFd7EktXXH6yGDYtLCyl1jcnFJoqchmhxf5cGaC1GER9fSneB\n\tTdCKcVMUt4nXJ5by94SeHg3/jc/wnZHcC1F5DAOLZFRL/JKau+PSC6iQYGklufeOPu44\n\t4FAA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=nwWiPdGXUIYuzNeW+ojLSbHRKc/FIAPfRnvONl0TMXI=;\n\tb=heYVKZn7mPKZebB98CTBeWF5yRDUrSHcGyFO/5X1b+zSSOCgUN6mAa2MijHOQHbAtR\n\t9RtMuKKWvLQi7/paO/zno15khIEZLwZdOVIJV7g+an8OBmh5VuG6UNkc6C4LSUwWb8wz\n\twHzROC5yqegAhVw9+lTi77qmrOy20HrwWKmgQ5FsiNC/7X+wMkMHnna6yfiTX9hyPpoe\n\tZI8nkzum43ey5OHnmDLtOykNlnbkSgUW3KsWOF6u7L+/hf/if4InEnfhwaMkPmnVnUSN\n\tGhCHYolyPG6tKVTUoraCdzBD+KzrIrdIug42NUKgoOy4KhIfsXf+lqwm49vd2v3/z3Tc\n\tY/kw==", "X-Gm-Message-State": "AHPjjUiu6QO9wA9jJ67JEJ6pQvg8qVdsJfQeNWQz82cikX92LmV/5h2V\n\tdfdQHJNb//Z85J5e", "X-Google-Smtp-Source": "ADKCNb7VEytGxhT8yOsSTI8AlARJ4fhyuKA841rVleQ0raqjPDIlhLzNRM0745A36jaha+5spN6okw==", "X-Received": "by 10.98.217.133 with SMTP id b5mr405591pfl.227.1504731197878;\n\tWed, 06 Sep 2017 13:53:17 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "X-Google-Original-From": "Stephen Hemminger <sthemmin@microsoft.com>", "To": "kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com", "Cc": "devel@linuxdriverproject.org, netdev@vger.kernel.org", "Subject": "[PATCH v2 net-next 2/2] hv_netvsc: avoid unnecessary wakeups on\n\tsubchannel creation", "Date": "Wed, 6 Sep 2017 13:53:06 -0700", "Message-Id": "<20170906205306.10541-3-sthemmin@microsoft.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<20170906205306.10541-1-sthemmin@microsoft.com>", "References": "<20170906205306.10541-1-sthemmin@microsoft.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Only need to wakeup the initiator after all sub-channels\nare opened.\n\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n drivers/net/hyperv/rndis_filter.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c\nindex 731bc7cc6f43..065b204d8e17 100644\n--- a/drivers/net/hyperv/rndis_filter.c\n+++ b/drivers/net/hyperv/rndis_filter.c\n@@ -1048,8 +1048,8 @@ static void netvsc_sc_open(struct vmbus_channel *new_sc)\n \telse\n \t\tnetdev_notice(ndev, \"sub channel open failed: %d\\n\", ret);\n \n-\tatomic_inc(&nvscdev->open_chn);\n-\twake_up(&nvscdev->subchan_open);\n+\tif (atomic_inc_return(&nvscdev->open_chn) == nvscdev->num_chn)\n+\t\twake_up(&nvscdev->subchan_open);\n }\n \n /* Open sub-channels after completing the handling of the device probe.\n", "prefixes": [ "v2", "net-next", "2/2" ] }