Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3166662imj; Mon, 18 Feb 2019 21:39:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IbVaeldxea0ghwx60qWb65us56T6gTdfy+9DxCjmFvQf4u40jXwqTMcMuqCas7SjkTdyT+3 X-Received: by 2002:a62:1c45:: with SMTP id c66mr27981712pfc.90.1550554774104; Mon, 18 Feb 2019 21:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550554774; cv=none; d=google.com; s=arc-20160816; b=uyERrYhmf3KBhCkWiT1dQ60MA8shqxdi6dCmf89JYFqor0WFqp/zDS45woa//EeKFn nVR7p9NWkbA6DKnhhPRm+icOeZ95bFcQDSvbY01KDHknVr9+UVuhoYXY9JwTLnArtCoM yZE/sIQfhVJeocTF37ivvrK/iK1bRsEwEWBtuBOLTlIxjV+uAr7bHO9txTN6swjl8WTz ZVGZOBnWaApCljDRBdY2S89HR1HvxyIpNlGn8I0rVNvyA42VFQG3lEbC/UaENf0oKyJi 04d4Q2x7RXDwATSZT8vFJLtMOV3KBGn3bAKsEO3eMNGi5z1ojJxwy1FTv7+conXV6R51 1HDQ== 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=ImUvkukmD+C9C72uwxCLIPpkOjYCj8A1c+E+z+QNOtI=; b=vmDiwuvI38MLD0Zw5/6ODvEPo+7ALl9hQD5ntffA//Ho2OVy+3MpZYmN1lgiY/sjN+ h4/hTlfwKDZ8CpreclKHrsnGaXIiOiyNmqFNA850KmncRAcJp90gJ3hoYPjDtOfKua+U ulwC6ZqDRVc9al4nbLMikA9ws2y7zZWp7F2nnDJB1XVOz+ZaJ+dHiOiY1Xb13a5gnNQX 0x3WcHUdrVtypn9OdTPrCcjWRO4Sa73ZjnPMrvaiEkZym++ukW+0Xc4g6FyZzx6gGWyX sRyP732uCRWWyfYd00fhZsfU16RgEnXAWfdIs6RaWTMkKuiTMm6qqee4ZcvT+THkfnCn I1yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="utH1o2/g"; 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 v1si15088017plp.12.2019.02.18.21.39.18; Mon, 18 Feb 2019 21:39:34 -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="utH1o2/g"; 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 S1726364AbfBSFiK (ORCPT + 99 others); Tue, 19 Feb 2019 00:38:10 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:38904 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfBSFiK (ORCPT ); Tue, 19 Feb 2019 00:38:10 -0500 Received: by mail-it1-f195.google.com with SMTP id l66so3482012itg.3 for ; Mon, 18 Feb 2019 21:38:09 -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=ImUvkukmD+C9C72uwxCLIPpkOjYCj8A1c+E+z+QNOtI=; b=utH1o2/gjdJ+gtGs+zmbO2Ym67uOSXee/38as4/MUAotNStu5vkvQY03wXX4E+oh1m SdeFRcAnEV70fEQu9+Z5J0C+rIoWtD3DVhf0cAr+1gz2BG7mljvF3/B+r4qyyE+ryWqF zPgXOdXpPSyWEZPWDSi05Q7QYqYkJ4NpV1pB5xj3VH5m3XwVdVf7/gg2Wh/tmpn2lj9Y w/Y6D9UcNk5UdbcnY3m0A+mT4UaczC82STBhkXcAGNe1tfg6X4J6HdLg106GsYOH/w0k cSwqIekrkXq2ezVkAsk9qNgEkdvPzS87mHnzAHnUe1KPH2smScz0Au/6SMa9EHk1rgSc 75Ig== 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=ImUvkukmD+C9C72uwxCLIPpkOjYCj8A1c+E+z+QNOtI=; b=QxG017ite/0XTq4Fdiwq9bDNm7F2VavWBRIVc165vuvWMUtes7eE6/YTF2LMHdslFI JBI/UaLxVsad1VLYIUyvg0hHfaH6191xApSCko8SnJALPJxiOgmOaacLqCxSeX9UFe73 9mmGFJvRJcCyAZEMemLpXFmKcp60osxiiI+qEMSzBkdqeIUQFDtIkMis7sYQ/pP4hQ/C kIvhesqqpnFNpt8vaEE3eu7IViaBEM9ivoU1314h4pNMWLiXNZGAaAvGLrCZ1Q7WjcFN MG/TFa7nLdbhJoukZjiJ4ZT4sq8OhWtQ/VlgdfBeQabUSFts1oHbsYfkDnUbzHPjlz8c hbjw== X-Gm-Message-State: AHQUAuY4nJbLmql4SmUz4psxI6mb0u6eF6O9Iyzx0vJAB9yohIFt7LHT aY4NWOGnzWOGpPXlmwF/uf0= X-Received: by 2002:a02:c943:: with SMTP id u3mr14505486jao.96.1550554689207; Mon, 18 Feb 2019 21:38:09 -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 m26sm727257iti.6.2019.02.18.21.38.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 21:38:08 -0800 (PST) Date: Tue, 19 Feb 2019 00:38:06 -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 v2 1/2] Drivers: hv: vmbus: Change server monitor_pages index to 0 Message-ID: <23823f617d325c9e961d2433901e6bba3e7ca5f2.1550549612.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 Acked-by: Stephen Hemminger --- 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