Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964810AbbLOB3d (ORCPT ); Mon, 14 Dec 2015 20:29:33 -0500 Received: from p3plsmtps2ded04.prod.phx3.secureserver.net ([208.109.80.198]:35156 "EHLO p3plsmtps2ded04.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933140AbbLOB21 (ORCPT ); Mon, 14 Dec 2015 20:28:27 -0500 x-originating-ip: 72.167.245.219 From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com Cc: "K. Y. Srinivasan" Subject: [PATCH 6/9] Drivers: hv: ring_buffer: remove stray smp_read_barrier_depends() Date: Mon, 14 Dec 2015 19:01:58 -0800 Message-Id: <1450148521-28447-6-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1450148521-28447-1-git-send-email-kys@microsoft.com> References: <1450148455-28399-1-git-send-email-kys@microsoft.com> <1450148521-28447-1-git-send-email-kys@microsoft.com> X-CMAE-Envelope: MS4wfLLK5EXpnYtWJ4BgzLood0u9k9s1NrHAkgS7F5Npr4GThJPy5kQ3nVqoorOrfOi0EXpyN5mehXnP6OqyxKD2Iungty7O1VslUtoHzUSfNQS7xdX7rIpn H8+op2r1Vn2GNNSpdRzfI2lQDIKUzpaW5hLwSyvHa714GN1RjMsSgzyFoNobwBQBvkxm7x1pInzI7YwytAy+Anz7MMzZmDNgvQBgxByP4nsP80T+FUjMrO90 nCEVOAzKGJFTcciIuuqERrjzPO76j/AnNEwtLxMO3r8vf2DWXI5t/qHQgOg8/yvLB9CTAHyl+MYq1LqDPLo8TAane4QczDU5zksgP5S/9IaGLq8VPObeOusp L7uxSxNd+w0iGP/tKwOiO4f1lQNykimW1PKNxxCM+K+fgkXEB1a2GIjVId1oy10duaqjz31V Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 33 From: Vitaly Kuznetsov smp_read_barrier_depends() does nothing on almost all arcitectures including x86 and having it in the beginning of hv_get_ringbuffer_availbytes() does not provide any guarantees anyway. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index acd995b..179ff33 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -141,8 +141,6 @@ hv_get_ringbuffer_availbytes(struct hv_ring_buffer_info *rbi, { u32 read_loc, write_loc, dsize; - smp_read_barrier_depends(); - /* Capture the read/write indices before they changed */ read_loc = rbi->ring_buffer->read_index; write_loc = rbi->ring_buffer->write_index; -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/