Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp37973imj; Fri, 8 Feb 2019 14:29:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IZTVcU8BDUYDSC/KDdQ6LE1pNuyqRjRCOIOCRP4yOkSKFihTj6gKWNNt4zTEknmZNUlCH1v X-Received: by 2002:a63:1824:: with SMTP id y36mr22852223pgl.68.1549664963677; Fri, 08 Feb 2019 14:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549664963; cv=none; d=google.com; s=arc-20160816; b=Pq8oayNtLQZXVBdzRUPiUnITARE/7NWOGAFcW+N+7lVwLSmJE564E+YyUv7bplkX5F YdK5/61HjI7gNij1BmIyQ0slzb1fv5rITPTlJ8opmwkU+CI8568TgYlVIhWAm1nCOIk8 sgcO6MuRfC2FuyIK1Ie6T950Kgt91UQdsLDb5/FNyRIPr6KbEbPUoyC7Rfkf5N8OhpAO qnNJt/SpLMXPBtmpDgfNyzEKKrtXQCGRdBPKNBMdmeXeqiSyzQ/ogMiQAksu+PKIFOl9 Oi1YyzfYi2UKAKGWdXYYNHtoKl+m3FEprGYUkV1Fus/fcSh43bgS+yB8y9BpPjHZVnBD RK4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=67GnGD2t9tSfA0mA0vr59+dLv6I5EckKQTlt2UbrRTU=; b=V9UI97yUCKNNkePYDbK5gICbhmgKJy1KvHfOp22UtpfHg1kznTuvVHTdQUee1WgUGU FYpeIina+pQ2MPNNYKKMjdA5xsZ5sq2LzO2c/il6XVJWD6lHB/X0FDq6rn2HdjgFRovi sQHlFCNasmsuAGcYfj8NF9KNFCwDxdwEdQLlAHhKF8juPiFY4G8s2SdONkbgjTfAsndD aPNtywAMNzLB2W5uZhcKppVojzp5yGY2j1mQYFQWHA5UpAbUocNu/4uGxwVGbSyKnCjA tKFj4RD/pVGC3OYR30pmrdrg5ktPbbIw5WK9x7bgFaqzFmcUrr1DdEXi4IJNb42kxoFr NKVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=QSUVO2EW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si3382348plt.68.2019.02.08.14.29.07; Fri, 08 Feb 2019 14:29:23 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=QSUVO2EW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727082AbfBHW2t (ORCPT + 99 others); Fri, 8 Feb 2019 17:28:49 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39727 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfBHW2t (ORCPT ); Fri, 8 Feb 2019 17:28:49 -0500 Received: by mail-pg1-f195.google.com with SMTP id r11so2182179pgp.6 for ; Fri, 08 Feb 2019 14:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=67GnGD2t9tSfA0mA0vr59+dLv6I5EckKQTlt2UbrRTU=; b=QSUVO2EWRHg08nxSUEdVvx+l2lt73ihq44l1HdbY9zUzAUhzM82jXAaK52MWuQ1gZ2 81e1Nhya834lLvTOlqhpWB9BJ93x/9hvvkkjqh56pv/5B0i+gMex1xHp0ZHuIhMM1DoR DqsFYkow7iDcyPSPGvqQCM04/8tLRjR+ozVnT5oPh7Jec7ori0N/MV/X+VPsEexqGA4Q ztbMNbLWux+QmSPQmOHjx2Jw4SlX1NqX243SUBQJ+KkntCFgXieSrxvqFO7r6zL8rBv1 fKlKZ0u7WrYAbTSKTcGrmrFeuD2eNY9spOxc9c/QdIWs71/qDyJGwS8yuyS043W9q53M JywA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=67GnGD2t9tSfA0mA0vr59+dLv6I5EckKQTlt2UbrRTU=; b=qKzdK9s6h04jHvwLSSc9AyuCxX1GbVfIkaPt2WU0Vfj+vGMNzcWfEygKUxWOJt0jq2 dlpERTgjkdlY0hYRv6qawOheDpLLrAEsm7TIQGciroPwpl+foEmVOVy3Cik1ABt+wvHc x+2JY4V6ykOopcXxHY9RVlnsl4IepE0T1aPujwz7/QTbEO7qjoocoFcVoyGKb/e+0T4y hpgatVup0MDJvumpwNP/jRImNZEyMl5TuojxBV6J9Jbtkxc5GMByjQ06mFGYhQiAey6b Xi8QZOfdPcbT8l6qcl71PQKqk89Uj+pUEIoetEcaj+T2R2XEwevf5DyWXbQhb716UJ+D QFxQ== X-Gm-Message-State: AHQUAuYzboB+s+fljyVQpzlnv4nySQs0NnkB1yWzBoLbg0CIR4/tEDCG S/0r1p8n5IX0wdecUF5t3hp4Qw== X-Received: by 2002:a62:3541:: with SMTP id c62mr24471418pfa.19.1549664928006; Fri, 08 Feb 2019 14:28:48 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t5sm4583245pfb.60.2019.02.08.14.28.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 14:28:47 -0800 (PST) Date: Fri, 8 Feb 2019 14:28:40 -0800 From: Stephen Hemminger To: Kimberly Brown Cc: Michael Kelley , Long Li , Sasha Levin , Dexuan Cui , devel@linuxdriverproject.org, Haiyang Zhang , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] Drivers: hv: vmbus: Change server monitor_pages index to 0 Message-ID: <20190208142821.0ccc0d3f@hermes.lan> In-Reply-To: <181a0a2a82e1ad0353a7bdd55a3bdaa0891812cd.1549619051.git.kimbrownkd@gmail.com> References: <181a0a2a82e1ad0353a7bdd55a3bdaa0891812cd.1549619051.git.kimbrownkd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Feb 2019 04:58:52 -0500 Kimberly Brown wrote: > 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); Looks good. I wonder if ever gets used though since it returned incorrect data... Acked-by: Stephen Hemminger