Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1412794pxj; Fri, 18 Jun 2021 06:37:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydCvbu7/UNAgS0qnsu4hmT8PDXNDEHB8N6N+UcpRrlJkjcqY0vlu98fNt1TspHNTw0N2Ob X-Received: by 2002:a17:907:2895:: with SMTP id em21mr10806774ejc.164.1624023453166; Fri, 18 Jun 2021 06:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624023453; cv=none; d=google.com; s=arc-20160816; b=PTsa8UIicCjBSi6QAlcEwDPr20YFhtwxHh141uk6QzFbB+ibFSVbtpGCjywXD+Ow24 Wb3SDmuQw2/oW6R7QPH0zW0QelDE9sx7FsE9JT1AgRl+eJQu7phFkCGzDoC1jtUW0GqA tTG+SQNhpfVmEV2fwFEekIEF+CuWSGO8uAy12XDzMPACCol5pnYOInsialmjBcvqN9cc JXtVrwi26Jl/WyHUVYMSxXFcXfEk4OFEksWI3LZ/PZjVv48GowosBhp5MTx2VReAvMqC D2WW2mcnihuudhLhRc0UUn4soY85tyz3vbf/Aa1dd25p3pCymum7ZkBX/P6Vp1wMYI1S 1wig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xNf5vH386FO3DWWUo5p1LYSZTTqClAjh9OQpi5Mkgi4=; b=oEYauj0EloGz3YY8D2x7MnSNEbxFbHtdOQzpSyXxBNwlKmZkvewkgME/QlgCvlQe1C ET/ZvVDvwsIg3zteP5W09ZpPN5jK7UbaKiG3Hvs5Ldki4Fxjj/GsAcg2W/WP1JsTlUUj IUbhED9tojAVVLwmakC8elhTI8zbSYY/jR9m6S0ev3o30Tx5+CS3M0JCepeCdK9PRkfz ehXHtEgyOb3G3IZyg4hMIe9v09WizIyNp5RSy8UVrxDbETzhG0P3fjTDf5TmW7D5PqyA kl/zYBzOeRQ0Qd8oNtwSz5YanBKNv/yBnVyo7ydXTHGzinIRVH/YVlOs2Lqm/VCharyt DWCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jq91v4f5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si2576846ejl.104.2021.06.18.06.37.08; Fri, 18 Jun 2021 06:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Jq91v4f5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233939AbhFRNiE (ORCPT + 99 others); Fri, 18 Jun 2021 09:38:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32561 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233933AbhFRNhw (ORCPT ); Fri, 18 Jun 2021 09:37:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624023343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xNf5vH386FO3DWWUo5p1LYSZTTqClAjh9OQpi5Mkgi4=; b=Jq91v4f5UvacvR7GsMM3sLv0iITkFirI8IMr63spbaUwOEoQcLmFdzhGwpatYlhq2BEqY/ f9av+XeK1deI7PTB3BD0rHfLLR1U46vN7I+x/J+W8ImTdgEu7uZD19yEMICtw5L2caXhw6 yEQnHeWIltGV4ENKA8ibeP4o3tbfmq4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-14-bIgTEk-2MLa1Sv1-0Ih9yA-1; Fri, 18 Jun 2021 09:35:39 -0400 X-MC-Unique: bIgTEk-2MLa1Sv1-0Ih9yA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4E391100C661; Fri, 18 Jun 2021 13:35:38 +0000 (UTC) Received: from steredhat.lan (ovpn-115-127.ams2.redhat.com [10.36.115.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id A7A9410023B5; Fri, 18 Jun 2021 13:35:34 +0000 (UTC) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: Arseny Krasnov , kvm@vger.kernel.org, Stefano Garzarella , Jakub Kicinski , virtualization@lists.linux-foundation.org, "David S. Miller" , Stefan Hajnoczi , linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/3] vsock: rename vsock_has_data() Date: Fri, 18 Jun 2021 15:35:24 +0200 Message-Id: <20210618133526.300347-2-sgarzare@redhat.com> In-Reply-To: <20210618133526.300347-1-sgarzare@redhat.com> References: <20210618133526.300347-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org vsock_has_data() is used only by STREAM and SEQPACKET sockets, so let's rename it to vsock_connectible_has_data(), using the same nomenclature (connectible) used in other functions after the introduction of SEQPACKET. Signed-off-by: Stefano Garzarella --- net/vmw_vsock/af_vsock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index 67954afef4e1..de8249483081 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c @@ -860,7 +860,7 @@ s64 vsock_stream_has_data(struct vsock_sock *vsk) } EXPORT_SYMBOL_GPL(vsock_stream_has_data); -static s64 vsock_has_data(struct vsock_sock *vsk) +static s64 vsock_connectible_has_data(struct vsock_sock *vsk) { struct sock *sk = sk_vsock(vsk); @@ -1880,7 +1880,7 @@ static int vsock_wait_data(struct sock *sk, struct wait_queue_entry *wait, err = 0; transport = vsk->transport; - while ((data = vsock_has_data(vsk)) == 0) { + while ((data = vsock_connectible_has_data(vsk)) == 0) { prepare_to_wait(sk_sleep(sk), wait, TASK_INTERRUPTIBLE); if (sk->sk_err != 0 || -- 2.31.1