Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1413627pxj; Fri, 18 Jun 2021 06:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7NEdvW3lBaqy9YnCcr1qAimvBD/gaR3AVfDLdyUMNLS08vNCHqh6kdPgnausCD/fYIYxJ X-Received: by 2002:a5e:dd41:: with SMTP id u1mr6804496iop.188.1624023517281; Fri, 18 Jun 2021 06:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624023517; cv=none; d=google.com; s=arc-20160816; b=Hphh3S8YpHP0BHKQCMmYoAatXj9yWmQ7dEX8Je+YW+XYKlJh2HQ+HgYz5f9ZTN2gZ+ 4NoCamuGegYoawASQVK5GgaMiX4dZMnYqZnjguZXHhhRsWPruM+MR+noLDYMbUdKy2At nXH83C6yhcl9Y2zCzndIvG+6Da9uYaZ4YVpi199YGWHXkubr6Okhn66TeuG6UnHx2ArG K9uk3LMIJcI+HG68tTwFxOI2owmod1GYoi7K69euRi2SEahri4CKGVDkWafJRzqre/ln 6PwwDBFLG4yXRsVk9jlARcjvI4XODZ1MYImekrHGUzWI2rZvylEs1q4D1mDiawXS/UBM r2wQ== 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=dXqmNJYdW4k2bFeB+YFnzlxYcdTW1K7N5BohB9KAzV0=; b=wkIg2GxHOE96Qn04E8EugrEx/hjP8CtmdiwVl6Hcsn4EVm8gApua7xNyXfcn/nDr6r DtQ0/iTAaeYwYxGa6sIP+fYqBAGkAc6nEKW8PDN1h+6HfdcPkwxjjWI0fx8U2Gv6j+xv upCfp0umG3ee9NgRnPhAPFdfYWYu1VrtZrQTgzdOlUIkl2mIvvQ5s9MK3NFyj/wiAy1E v82HlXGzkNORYs/3Wr6FS7Q/HRYkHSV672KccHJzgIr+GmZ4nfOM2YcjVbcO+GnTK909 +nO14eAz4T4X8zVVXoGKqIu8GbhULTxJvuoOqAAc6STsz15epFupT9b84Nl12UdubCuG eCSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D8omukd5; 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 u12si10600547jat.20.2021.06.18.06.38.24; Fri, 18 Jun 2021 06:38:37 -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=D8omukd5; 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 S233757AbhFRNiP (ORCPT + 99 others); Fri, 18 Jun 2021 09:38:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:47489 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233944AbhFRNiB (ORCPT ); Fri, 18 Jun 2021 09:38:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624023351; 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=dXqmNJYdW4k2bFeB+YFnzlxYcdTW1K7N5BohB9KAzV0=; b=D8omukd5nmfJ9xmsKEfKEkzPsgssNyuZul6yINq6hxaac56oQNiDtmUHt1AxDfP5YH2lZu tpYB+LVHmoAbrRYpDPcsLE293+59oN+DUMouz7gc6oKHnVKSFBgNAFHOFJh0xRvQmB51bA 3M4CeBOs/us7LWHaGtIpoqin/GYEo6c= 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-594-wOd1bvkeOcuyxnn8SmCVng-1; Fri, 18 Jun 2021 09:35:48 -0400 X-MC-Unique: wOd1bvkeOcuyxnn8SmCVng-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 43348CC623; Fri, 18 Jun 2021 13:35:47 +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 BE7571000324; Fri, 18 Jun 2021 13:35:38 +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 2/3] vsock: rename vsock_wait_data() Date: Fri, 18 Jun 2021 15:35:25 +0200 Message-Id: <20210618133526.300347-3-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_wait_data() is used only by STREAM and SEQPACKET sockets, so let's rename it to vsock_connectible_wait_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 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index de8249483081..21ccf450e249 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c @@ -1866,10 +1866,11 @@ static int vsock_connectible_sendmsg(struct socket *sock, struct msghdr *msg, return err; } -static int vsock_wait_data(struct sock *sk, struct wait_queue_entry *wait, - long timeout, - struct vsock_transport_recv_notify_data *recv_data, - size_t target) +static int vsock_connectible_wait_data(struct sock *sk, + struct wait_queue_entry *wait, + long timeout, + struct vsock_transport_recv_notify_data *recv_data, + size_t target) { const struct vsock_transport *transport; struct vsock_sock *vsk; @@ -1967,7 +1968,8 @@ static int __vsock_stream_recvmsg(struct sock *sk, struct msghdr *msg, while (1) { ssize_t read; - err = vsock_wait_data(sk, &wait, timeout, &recv_data, target); + err = vsock_connectible_wait_data(sk, &wait, timeout, + &recv_data, target); if (err <= 0) break; @@ -2022,7 +2024,7 @@ static int __vsock_seqpacket_recvmsg(struct sock *sk, struct msghdr *msg, timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); - err = vsock_wait_data(sk, &wait, timeout, NULL, 0); + err = vsock_connectible_wait_data(sk, &wait, timeout, NULL, 0); if (err <= 0) goto out; -- 2.31.1