Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2126720imj; Fri, 8 Feb 2019 13:04:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IZD7bsCH2x3OevYnxOYf5B9fvqPmM4lPM1quv/jCW2mm+Z8LpSttKW79fxc8n9dD/VuwCzj X-Received: by 2002:a63:164b:: with SMTP id 11mr6930253pgw.238.1549659863670; Fri, 08 Feb 2019 13:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549659863; cv=none; d=google.com; s=arc-20160816; b=sV1Xa3t6siaSZJgijBQriKUd7npt1L2YHc4AMEqxOOsz/gE69yGHlcp12uFNTtVyMn g0jRb68zWKkmqW6wzdo9yJRIcX6Q3Ixst2CFi1Qbt0Itv6u9WyNmjIDWCA8mnLLwpQS5 gI5UnRfEvOsENlBJM9oJrxSYs8XcliNCtTcHXMxPyyjNRKJ2g3LRlMX6ijsp30CCHFgz YRVAUqOb7/ZfJmdTmX5ysh+/6juBjlT2geeMpSjiPGkUAYi++pNEM7+eV76QGk81ruI0 Q0to2dSkla2+1YhxqYjgHTjMG/42flGkqNg/7Zh0pUhcVvzMHwUQ7sX7W0qnDUzhO634 1TCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=4L5tlZ6jPMg6GKVII0e/PoebbtfS57aOiz+3iNssAGY=; b=njrNZr1Df0Syb6VhHfRhJcQVmHDRcdUCwskkgkROtji75Wslmgb4VSHh1/Rurv6yur 0DFHU4zrnug57FplpbopmsdUPEz+u9EryXNkUEQ/fMgEhtUkG2cUotyTZs8XVLl9A05h P9id9n/3PcVo60CHUESypfMTj16OZbif6bchOKmXD9jL5WCPPe/AFNf8fdizlY6YxyyA bkINVMh8qMXV/Vfo9WY/yEDdBKWC6jKYLNuthW2BxA1KOjOHOrEq/RuDMkFgjgaZ4C6R naoguhs7plFrclh5Uxr1f8h6PBqmanW1Ttolq7AxhUTX7F7CofUgUZaIgni+xbi+RdiZ 9wow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HCdHANXe; 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 d16si3156041pfn.169.2019.02.08.13.04.06; Fri, 08 Feb 2019 13:04: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=@gmail.com header.s=20161025 header.b=HCdHANXe; 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 S1726985AbfBHVD7 (ORCPT + 99 others); Fri, 8 Feb 2019 16:03:59 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:35100 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfBHVD6 (ORCPT ); Fri, 8 Feb 2019 16:03:58 -0500 Received: by mail-it1-f195.google.com with SMTP id r6so12514631itk.0 for ; Fri, 08 Feb 2019 13:03:58 -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:mime-version:content-disposition :user-agent; bh=4L5tlZ6jPMg6GKVII0e/PoebbtfS57aOiz+3iNssAGY=; b=HCdHANXeySWVhiD/vJvjsr2VMnaE3LrPKr/EH4+vGhpbn6xJE5KM/U4MysOZoHpOrw FY2Op7OdxJi/C7wxncCckJ92jCcrmHhSJoGXiZjtkfsuy2/d+vgW2+p8VmsOm7/Acirk hnYrUDKXk+rLGbHd6QmREpWOIC0baNfEvztppAjWIRyw0AHXjHIDrJL8aB1N6i7ksTe8 br3kwdWFu5sXMcnEgXcSfnFpcOc3nlHG0WiNkmKLzzWmJudsTZyaoUoYPkgJQ6mg6JWs HsfRq/+Sf2/eJpAa6UP4wV6sU1o/zdmMjPybcvXN4zEsbdyIiOmYngkSLIHTafHwLev6 hbxg== 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:mime-version :content-disposition:user-agent; bh=4L5tlZ6jPMg6GKVII0e/PoebbtfS57aOiz+3iNssAGY=; b=LflB6ZcGT3fX7QOWAZFGzitZxCYzcu0gq9jREDrBXc24kTgI96LlmN9c1lFdKoQ9Fd /u6PgGPJnuVDupMycDrMGir9qGA8czEVeXFI6749gpdNJrawz8DqFquLnzb3P79U6/m+ I9HJQ+z8A9OAEnd62rqzw0jty+7M5FSPnMaPubOkv+tNViJW4Uhx/2rd77GLk0aQ+h2C ZlXeAOiduz2lLm7kYRTW7rYdlAV/lxovGZPZJg5fESeGRw5kIzv7WvtalprPpnz7N9eI utoDD3V9MP6X9vnFSlmSW/rVfE0917Zu6OyuCXV7uGhyit+IpIySqx92WY0FHpMPDRLt StOw== X-Gm-Message-State: AHQUAuYyeNQ31i7CGPjIsYFUxMHkVZbr5bSiKJgIB64cwjajq51Kr5rq 0a/uGRJ8ODngrzuJ9INv7TY= X-Received: by 2002:a24:7351:: with SMTP id y78mr313548itb.12.1549659837927; Fri, 08 Feb 2019 13:03:57 -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 x17sm1395737iob.11.2019.02.08.13.03.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 13:03:57 -0800 (PST) Date: Fri, 8 Feb 2019 04:57:11 -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 0/2] Drivers: hv: vmbus: Fix sysfs functions that display monitor id and page data Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Some of the monitor id and monitor page data sysfs files display incorrect data. This patchset provides the following changes: 1) Change the monitor_pages index in server_monitor_pending_show() to '0', which is the correct index for the server. 2) If monitor pages are not allocated to a channel, display nothing in the channel's monitor id and monitor page data sysfs files. The data that is currently shown in sysfs is incorrect. Kimberly Brown (2): Drivers: hv: vmbus: Change server monitor_pages index to 0 Drivers: hv: vmbus: Display nothing in sysfs if monitor_allocated not set Documentation/ABI/stable/sysfs-bus-vmbus | 9 ++++-- drivers/hv/vmbus_drv.c | 39 +++++++++++++++++++++++- 2 files changed, 44 insertions(+), 4 deletions(-) -- 2.17.1