Message ID | 20190821061423.3408-1-chaitanya.kulkarni@wdc.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=S9Ce=WR=lists.xenproject.org=xen-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1A099112C for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 21 Aug 2019 06:15:58 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8D1F216F4 for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 21 Aug 2019 06:15:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="UIS+/zsj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8D1F216F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1i0JtA-0003uY-4V; Wed, 21 Aug 2019 06:14:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <SRS0=9TMJ=WR=wdc.com=prvs=12921afdb=chaitanya.kulkarni@srs-us1.protection.inumbo.net>) id 1i0Jt8-0003uT-5q for xen-devel@lists.xenproject.org; Wed, 21 Aug 2019 06:14:30 +0000 X-Inumbo-ID: ee00a6c2-c3da-11e9-ac23-bc764e2007e4 Received: from esa3.hgst.iphmx.com (unknown [216.71.153.141]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id ee00a6c2-c3da-11e9-ac23-bc764e2007e4; Wed, 21 Aug 2019 06:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1566368068; x=1597904068; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tDUu6OfCZAgiE5vxUUEYM/lctnZ4+mN4P7Ofucvf8cQ=; b=UIS+/zsj3dLIDYj3hVm0weckNR8UeVKmQAHGtwZeoEfftE3LhOOjfk30 R9rdQ+vpnRSJonxpu/Tc/n9JfoRNn/agDkbtxrchZjGdHni6BwctGh22D 3MV8vEpGwSv+md8b3xl+YbJ9Dq7RKt/aB7fr4bqmWVXhELudBfG17hJnq Es5n95m/anVg6bn4BFlYbqec/SmN5Sh7QdLNff/2Awmz1ZvTTEEt7W5vm f7yLYrfr8C+d3tNzs94KE6L2kL4+u3JnsIZ52Yn6OXy53Ji6rcSln4mLt STgBaiBOLiAVfi/NT2TOZf8dXsI4HonH6Srjburqmg1bX+rveFmM/s4Cl w==; IronPort-SDR: 2clqy71Snpeu0Pts/D0cRAiIvo5Oj4vx+wSC8NMVzXOkBdRS/5pY5S3wtcuEIm1JkfPs/onBZw LYIICj8sc48ht6gIKk14QswwDp/sMT7+DQhq7eHLg6dGByfyaGDiAiUN73gNvMP3fANm3/HLhq uczUwZVK4n785Jyi6rKeBkA02IefLkydcGkpOVDUQHJLSowuql4p5tHhmvvKc4Uhe3buR5BV12 vF4hTM6CL1NSzQzvzKmDV4C3KdukXtdSJjf7zyDYQHn9061P+RIRTawhNMwUy2JlYEJQeRufuE Ax0= X-IronPort-AV: E=Sophos;i="5.64,411,1559491200"; d="scan'208";a="120898325" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 21 Aug 2019 14:14:27 +0800 IronPort-SDR: 9GNt5ufBRxZOE9xLcPieFC6mAodbro/zKkBTl2rzQ5aJRH/qqrYyK98sAw/MmI4wLOMF5xsDD/ yFD1eOKXjevTumcjBquUexhstpdad7+7Cj+a308bzmyJPCVPR8Nc91yx0OHxJvyw7DjSaG9CHv 8uKfI7XSvOaRw93CYeKfdSQJVISI0mQcpJZO5lqebBb9HAW/b9db5JxCgCHgI1YIk1Xm1jx9gW Bwy4SekE70LkDZObRF0KLy04lFKjfqpDIZqcQ7E12rBmzuWjO0Wbu6qMGvUSy+z4T8ooFuVI10 XSHn14CXmaXGP5zzItT3v16s Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2019 23:11:48 -0700 IronPort-SDR: ZGZ6fU+fR5RzuuKyQ2BV7Qtj88cD9Ywgd0u1B2kvbxKN/qhuT5iNaowYnD43Mmvlu5PKoVZxFu EwuFv5WC4mXRvu1Ot2FMKpU7WEJTvW8+WuLi+qEjPsNYZ7a1WaPn3nzKPMvQTxa+AP6VJ7jrhh yDltPRtYNqQZHfK0/qhkoQE7+cYR6iw0FLrIjEhPi7rl5kCUe1BDydqeNMnl4XwqCi6Ihev3Rh 5960wvlRjEiKwa7McvK8/Zoh2N34Yk0PQUrrYQBNjhsSvbtu2ZY5ExsJRLBEA81+ZpGG/t3gaq ce4= WDCIronportException: Internal Received: from cvenusqemu.hgst.com ([10.202.66.73]) by uls-op-cesaip01.wdc.com with ESMTP; 20 Aug 2019 23:14:26 -0700 From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> To: linux-block@vger.kernel.org Date: Tue, 20 Aug 2019 23:14:14 -0700 Message-Id: <20190821061423.3408-1-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH V5 0/9] block: use right accessor to read nr_sects X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> Cc: damien.lemoal@wdc.com, linux-btrace@vger.kernel.org, bvanassche@acm.org, linux-scsi@vger.kernel.org, konrad.wilk@oracle.com, Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>, yuchao0@huawei.com, colyli@suse.de, linux-bcache@vger.kernel.org, jaegeuk@kernel.org, xen-devel@lists.xenproject.org, kent.overstreet@gmail.com, roger.pau@citrix.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
block: use right accessor to read nr_sects
|
expand
|
On 8/20/19 11:14 PM, Chaitanya Kulkarni wrote: > In the blk-zoned, bcache, f2fs, target-pscsi, xen and blktrace > implementation block device->hd_part->number of sectors field is > accessed directly without any appropriate locking or accessor function. > There is an existing accessor function present in the in > include/linux/genhd.h which should be used to read the > bdev->hd_part->nr_sects. For the entire series: Reviewed-by: Bart Van Assche <bvanassche@acm.org>