Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2128747imj; Fri, 8 Feb 2019 13:06:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IZGUr2UQnia8PsKyURsR+WLv2jDNZkx0BGH9PCTv/83fGoysQbbEAEwLf61TFhWlmjwRqPs X-Received: by 2002:a62:9683:: with SMTP id s3mr24167445pfk.60.1549659982240; Fri, 08 Feb 2019 13:06:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549659982; cv=none; d=google.com; s=arc-20160816; b=U7GbGdAX9d0sp4UJy0ltQoJ73b49HoL5smIWj72g6PxDp/Ciol3ehaf54LyHuAuJlC GPxdKgnU4ixKsguGEXp8x5dXp4DXdjPxmjGKUZKOtqWmZSF5jRWNVI3pHliIrCFw4zZT eoiVecZfCwhWRDv1p3TdUC9PpatHr2FVYsxGljCoMZCsgfJ1TRDTF9AI3zhno03+o9Lq Ezhrycwkym5dCiHXR6Ng4T04COdJImhBupt+Wpr+99ge2H4plE43rPGZgLhjUy4Ag7Tl xcct2I2+LCJvgBsepELk5PyK+lUFLgOIPJl9hNoCug5Y9Li49rrDC3kqJjBgdcO6DsTU ZjJA== 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; bh=6y4KeMeLMFgTB3O2vfmpU68U43lkDznFYjjKhrvbDBA=; b=ltuEIc6/s/lcOdMJo1r29Eide4SGSTJLr9L8JDs5eV2cOuC1rifVwD5VBvMgF5Bco3 LL3xereXmwY08erzsOSI3Yaud6jvpZlfnaAYJiH6m8PKN4ARyb3TQ46NAudggR6v7nd1 y3YGsSyK/zGh4TQ5M5uKjBRgvxXiXk2lPjcIV5QNmDFD3yULJCCOIZPY0s+QsJB9LDZD hiBJxMfd0wusgzCAv3uStbXxdQaeolMD9a5dQlqrxJ0NapxGZflyIJqbJE11Zp4udDsb WUrUlEyajY1+acXTfHaO3ZQMKsXDc1w+b5QjQ3zeQa4ranEMhw1fnSxAH0kSubmjdbyA CMkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DN2xrX62; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t186si2815548pgd.569.2019.02.08.13.06.05; Fri, 08 Feb 2019 13:06:22 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=DN2xrX62; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727109AbfBHVFk (ORCPT + 99 others); Fri, 8 Feb 2019 16:05:40 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:40607 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbfBHVFk (ORCPT ); Fri, 8 Feb 2019 16:05:40 -0500 Received: by mail-it1-f196.google.com with SMTP id h193so12413771ita.5 for ; Fri, 08 Feb 2019 13:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6y4KeMeLMFgTB3O2vfmpU68U43lkDznFYjjKhrvbDBA=; b=DN2xrX62PoBBIAIDFIWk6yejeCUhnXgjszF6+kH+VKeg6Nb3kyCF/fYBj9bpjSp8mi kXEPE0DkVJRZ2gdR4dUpYgStDmbgvZjOByDDfC4U0ZsLVYpgYatIKAERW1niVqF9mFpf NMxVcujcKgjKqM1zXHVKi3omEU4RIavrPpDAI7MpjWoWStP6U4ZgnwGqop+U5jl4y5CS PqDwl3+LCK5XmvyZTJA0if4MM/pasjHfecd1aN/650WaDpjEn5wIXTo6R23cYvQJuy/J qdzOwiJXvK0tg7sjnrHhom2OCY8OxgInuG84cMmVFjX06BOlCGalAfCZQVC8xEByZlP5 XN8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6y4KeMeLMFgTB3O2vfmpU68U43lkDznFYjjKhrvbDBA=; b=FHqOMjdyCiQ6IcxqiEbtcmFrIrZx/816KRAmYZOzQstKCm8Py5gSF/pS1AO0n2wGAK FK0oNPVLL1Ia3xBBJAg3bT4yqhjQS8sPja61uPqFa4Y9XpPx5eqJoCRrLNLTHwKAVPgo gbp42WWtC+Rh151aIj7jjX/BSDYS/0pSld9JsZItwZjh7HWZXMxtiQLVteDxexHy0aix rdLRTPT+iqDs4e7y+p9ih6iGKa1HLRcg6dUnABt9BWUYhmVGHmeY0zDHDcvFJUu4JieQ Nki30lb4uFlKyC6g67OoOR/H/RS+UaIYCzX1CtDPYTGn078VZwicZLIE07Pmbovi/CFH FhvA== X-Gm-Message-State: AHQUAuY4JtNwqWHJsqRoZIZ+E/+d9b230b7hDVcrsmE6Yye++NzFFAfM 1QFp49Y77jNIWpnDilaUTe9seNy9jKU= X-Received: by 2002:a6b:ee19:: with SMTP id i25mr12806470ioh.149.1549659939421; Fri, 08 Feb 2019 13:05:39 -0800 (PST) Received: from ubu-Virtual-Machine (66-188-57-61.dhcp.bycy.mi.charter.com. [66.188.57.61]) by smtp.gmail.com with ESMTPSA id h123sm1707722itb.36.2019.02.08.13.05.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 13:05:38 -0800 (PST) Date: Fri, 8 Feb 2019 04:58:52 -0500 From: Kimberly Brown To: Michael Kelley , Long Li , Sasha Levin , Stephen Hemminger , Dexuan Cui Cc: "K. Y. Srinivasan" , Haiyang Zhang , devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] Drivers: hv: vmbus: Change server monitor_pages index to 0 Message-ID: <181a0a2a82e1ad0353a7bdd55a3bdaa0891812cd.1549619051.git.kimbrownkd@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Change the monitor_pages index in server_monitor_pending_show() to '0'. '0' is the correct monitor_pages index for the server. A comment for the monitor_pages field in the vmbus_connection struct definition indicates that the 1st page is for parent->child notifications. In addition, the server_monitor_latency_show() and server_monitor_conn_id_show() functions use monitor_pages index '0'. Signed-off-by: Kimberly Brown --- drivers/hv/vmbus_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 403fee01572c..f2a79f5129d7 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -234,7 +234,7 @@ static ssize_t server_monitor_pending_show(struct device *dev, return -ENODEV; return sprintf(buf, "%d\n", channel_pending(hv_dev->channel, - vmbus_connection.monitor_pages[1])); + vmbus_connection.monitor_pages[0])); } static DEVICE_ATTR_RO(server_monitor_pending); -- 2.17.1