Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1616140pxj; Fri, 18 Jun 2021 10:52:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwewC9Wv2tNCl4inL3WB0Eb7wPsADKjzYXqOxV/GKeIn0DYgOMRggvkYWgAXmO19FjRfhR X-Received: by 2002:a05:6e02:1489:: with SMTP id n9mr8157262ilk.102.1624038753854; Fri, 18 Jun 2021 10:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624038753; cv=none; d=google.com; s=arc-20160816; b=F3NYRVj7cFbD+uiDawz68LSZ55+2tv+UM+fsAeGIypOFHqMMM0G0q5yWfuiw9dV/FG 1ugyoTSf3C0licqYdYQ3bPXTE+nvwA07FSx60n4VbfrRTibuCa4D60vTf7AnLtN+tbIh qsH2ejh/2HJzuLQnN2k1FcuoCLeF8RoLSCMNq8gep96/e39+y59dhcGov7Yp8wByVEPm M+u9y+vF9aPICL2clThD80mvNVS1UtIGPahwav3ip7oZVvRkNoSR0uiHW1mhiFvG5FKW j+CGmz55bQCvI62Lt1kdhgZbrTTH7yfHbaXfqP+Ldoy8sVhipm7PJXUqeidIRWCQpoqa AUCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=mioIxcKn1dUte/rgRLgYR39/5M/DokLmC2JiaDqlwUM=; b=PAl7p2vVTyNGdMHYgGsDh9Ow2vAJ7+z5LIl1m0FVp4QZPQ6gs0z0Kgm+Y2YQV6VXW6 TG3Uoe0GmpJ3NDweVC6ygfE3ZtJjo0EDWq3UKk3BB1kOiuJuc5mYIgOYoyXQCWXLEEIX naDS5WIai01Fwp/yOQjjFmCCDrrU2LFVDpxpBi1xZs1gG2vy+mXSvtuleiibAiZ6ZbrG U8biFD4zRJFloZmT1DlEb1A4cnM4g80/TW4RsFX5s+tR9gg7nrwftIAxJfPs0Bubbh31 Zb2SRi+SmW1hwr6z5lBMCIMwicJQxQoa5Mc6K7ChtdQr5WIsQ2r2HLIAxoFaw5fnSewj KNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kaspersky.com header.s=mail202102 header.b=rW1+7mq3; 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=REJECT sp=REJECT dis=NONE) header.from=kaspersky.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si2996172ilh.113.2021.06.18.10.52.21; Fri, 18 Jun 2021 10:52: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=@kaspersky.com header.s=mail202102 header.b=rW1+7mq3; 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=REJECT sp=REJECT dis=NONE) header.from=kaspersky.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234719AbhFROwo (ORCPT + 99 others); Fri, 18 Jun 2021 10:52:44 -0400 Received: from mx12.kaspersky-labs.com ([91.103.66.155]:55083 "EHLO mx12.kaspersky-labs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234710AbhFROwn (ORCPT ); Fri, 18 Jun 2021 10:52:43 -0400 Received: from relay12.kaspersky-labs.com (unknown [127.0.0.10]) by relay12.kaspersky-labs.com (Postfix) with ESMTP id 0330F762AF; Fri, 18 Jun 2021 17:50:31 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaspersky.com; s=mail202102; t=1624027831; bh=mioIxcKn1dUte/rgRLgYR39/5M/DokLmC2JiaDqlwUM=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type; b=rW1+7mq38xP+IdNDdBJgMHmo+K1nIdgK0vSkPb52gBLuBHd+m89rZrxtvN7K0iJY2 Vq6MIS1/9VpQ/EVwjm/GBjr1w2HjUkCZpYM1GDv11GdX5JUGkD64bjAqv2AQT5k1qJ Yhg50PVZ9Tn0ca76vHPiiJ9+TH+f4VFBi7GM5o/25W2H7XwHDvi9PuJ4AaGGMaHw24 JAHf9X37yOohX7UMmk4MSfr45TAqHaqkr0I+5IMWaCkJEY1JbbiXBZXECGJmDrd5X2 cPlZjmBcS69o1dyHPAV+tO8+/SIUuML/TreUhfESF169wXoo+1Hn1nGRd0semLpRt5 qkid4ukbeUEMA== Received: from mail-hq2.kaspersky.com (unknown [91.103.66.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client CN "mail-hq2.kaspersky.com", Issuer "Kaspersky MailRelays CA G3" (verified OK)) by mailhub12.kaspersky-labs.com (Postfix) with ESMTPS id 6413B762A9; Fri, 18 Jun 2021 17:50:30 +0300 (MSK) Received: from [10.16.171.77] (10.64.68.128) by hqmailmbx3.avp.ru (10.64.67.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Fri, 18 Jun 2021 17:50:29 +0300 Subject: Re: [PATCH net-next 1/3] vsock: rename vsock_has_data() To: Stefano Garzarella , "netdev@vger.kernel.org" CC: "kvm@vger.kernel.org" , Jakub Kicinski , "virtualization@lists.linux-foundation.org" , "David S. Miller" , Stefan Hajnoczi , "linux-kernel@vger.kernel.org" References: <20210618133526.300347-1-sgarzare@redhat.com> <20210618133526.300347-2-sgarzare@redhat.com> From: Arseny Krasnov Message-ID: <74271c7b-fb61-2f54-0ca6-6ea315cb758f@kaspersky.com> Date: Fri, 18 Jun 2021 17:50:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210618133526.300347-2-sgarzare@redhat.com> Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.64.68.128] X-ClientProxiedBy: hqmailmbx3.avp.ru (10.64.67.243) To hqmailmbx3.avp.ru (10.64.67.243) X-KSE-ServerInfo: hqmailmbx3.avp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 06/18/2021 14:29:51 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 164482 [Jun 18 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: arseny.krasnov@kaspersky.com X-KSE-AntiSpam-Info: LuaCore: 448 448 71fb1b37213ce9a885768d4012c46ac449c77b17 X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;kaspersky.com:7.1.1 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 06/18/2021 14:32:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 18.06.2021 12:17:00 X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-KLMS-Rule-ID: 52 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, bases: 2021/06/18 13:10:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2021/06/18 12:17:00 #16756757 X-KLMS-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.06.2021 16:35, Stefano Garzarella wrote: > 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 || LGTM