Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2073898rdb; Tue, 3 Oct 2023 09:24:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpzDMxf5MDEKt3AZQTo4Lb9LZvDsk4fomzwW/bTgoleDqGgLC4aGvA67ZIQ2bGcNqhvgf1 X-Received: by 2002:a05:6a21:7890:b0:138:2fb8:6c48 with SMTP id bf16-20020a056a21789000b001382fb86c48mr15810221pzc.8.1696350244765; Tue, 03 Oct 2023 09:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696350244; cv=none; d=google.com; s=arc-20160816; b=DMn3pbJocihA0MP1+ypuhpBERjcg0JWrmRUeQd+42N9XgufAudfm3oBWB0EksYmP7r tfnoSo+x7kw+ofMeH9tbEI8wZUKWp640axgCOsvrjFed3Y9DE92iK0Khvy/HvTzw6Hzx 0seq1ntnhAux7zPEYeaDsrrKoX0YU5f2FvV2nR9fYeac3FBUe2BNbGZbzdppnwwc1N0c WgErZH3O8Tn3YPwn7tmFJUB1ldXLjr6uH3FWICYYInH1h7yrmJ7QnR/dD0ulQcHKQWZe pnXlQTSecp8y2wKDCs6eCGvxcoooAWULRF1EQZ9XsOcge8jgg4RZXWXO3u33TXg16Avg 1mrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r147ix/t4ru4DZEC+DJrb4DBuvtWEoQLF9djs4ZSusI=; fh=JEq7ZyqHwnKMAbPjHbEHIOO1u1YxTWxtQlCbJmwG+xw=; b=hpuFCTpXXh2/8B5oYrZSSURfEFUIz09BfTdkDtPkYm3TYIT+okhIOV17l8J8ueeywh 52sRWaCkbB+UeIe+xy5z2UzUIKSIzk40VrBqnmZAncNhJuPLWeZhi6+wGDzHqICLLnJw QyeYmBRKnQWrDZXhNQFwNu3BbN5VBGuArO28IXBB9fmMfTY84vMhQUj7pkI0ICZ7VZoy RARsHkRzTdvz3f7O6n6HaHaDcZA/Y3WwPmKjpun9Qfrd1fiAetX47wPgCuatVoix0+jq /Dn/xzSA6hwIDrzGonJXq7+wjxBrSs1mVMZZR4bIS8t0yDXhuQtK69RUamzszdKLhqd+ gywQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bTMCJ+/w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s18-20020a170903321200b001c4329b77bfsi1610180plh.123.2023.10.03.09.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bTMCJ+/w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E03BD8157DF9; Tue, 3 Oct 2023 09:24:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240371AbjJCQXs (ORCPT + 99 others); Tue, 3 Oct 2023 12:23:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbjJCQXr (ORCPT ); Tue, 3 Oct 2023 12:23:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11196A9 for ; Tue, 3 Oct 2023 09:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696350177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=r147ix/t4ru4DZEC+DJrb4DBuvtWEoQLF9djs4ZSusI=; b=bTMCJ+/wHG1ZtJs/zaI712+Dvbc/w43umXMeR7M6BmQ26q5zYxppW+KKifVj+MaCbgYXzv 6IB9FcnN6ioCe1Rceh4z3TIfbGHRemT8y6zanwo+IUi12h6kfHupMcdnVweHOqwMki81AC M86RXrPqpU9rpMr5Yfj1RCjcwkS1yVM= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-364-SgEu7Kk_P7-VJV4oQ24t6g-1; Tue, 03 Oct 2023 12:22:46 -0400 X-MC-Unique: SgEu7Kk_P7-VJV4oQ24t6g-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-65af7c82f0aso12178496d6.3 for ; Tue, 03 Oct 2023 09:22:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696350166; x=1696954966; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r147ix/t4ru4DZEC+DJrb4DBuvtWEoQLF9djs4ZSusI=; b=JECt1rJSbXv+c0XMsgeHsSqG+U549/IzkHSOyghQAjZWeZutE0Fr9d8WHB35HrNfTD FI0iOeqpefwXFc5FqhRHgufONEPx+/p8zi/+/8WX8zRm82w8Sa76xmKWdP0kkp36J+Qd U9GPzHyBlkZtMk0GUNTB3EelztDZ/QS549rtenirW1o3eFdd3Mvl44W/2U9b7U2/Z92V hW6MTfZbPu3lwbrxYBD2ByN6Tg3JYr6gE2WmJRU6FU2OSU+dMZdTsWVZvy8TWaSFPp3l tOina3J+E0SkCYs4VGNGq/UxJTLOw4CtayI+u1scl943Tllx7EB03Uf/4IKAkXe53Zn+ zqnQ== X-Gm-Message-State: AOJu0Yw93AOOnjdovkIaZ26esVuPyrRfuywvwiKrgwlUOa8ZOo+vKfzv fj7S4vZ3Kiz3DTaq3hQ6JStQEBI/cHhE44neqK7WvxBdBfvhfL0MJxF/llMXFtzxzVm/w3ldNbp LOtPiayK1bvUFocTB3pKti+4P X-Received: by 2002:a05:6214:488d:b0:64f:51fe:859c with SMTP id pc13-20020a056214488d00b0064f51fe859cmr17355776qvb.43.1696350165792; Tue, 03 Oct 2023 09:22:45 -0700 (PDT) X-Received: by 2002:a05:6214:488d:b0:64f:51fe:859c with SMTP id pc13-20020a056214488d00b0064f51fe859cmr17355759qvb.43.1696350165512; Tue, 03 Oct 2023 09:22:45 -0700 (PDT) Received: from sgarzare-redhat (host-82-57-51-114.retail.telecomitalia.it. [82.57.51.114]) by smtp.gmail.com with ESMTPSA id a21-20020a0ca995000000b0063d162a8b8bsm612637qvb.19.2023.10.03.09.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:22:44 -0700 (PDT) Date: Tue, 3 Oct 2023 18:22:39 +0200 From: Stefano Garzarella To: Arseniy Krasnov Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Michael S. Tsirkin" , Jason Wang , Bobby Eshleman , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [PATCH net-next v2 01/12] vsock: set EPOLLERR on non-empty error queue Message-ID: References: <20230930210308.2394919-1-avkrasnov@salutedevices.com> <20230930210308.2394919-2-avkrasnov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20230930210308.2394919-2-avkrasnov@salutedevices.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 09:24:02 -0700 (PDT) On Sun, Oct 01, 2023 at 12:02:57AM +0300, Arseniy Krasnov wrote: >If socket's error queue is not empty, EPOLLERR must be set. Otherwise, >reader of error queue won't detect data in it using EPOLLERR bit. >Currently for AF_VSOCK this is actual only with MSG_ZEROCOPY, as this >feature is the only user of an error queue of the socket. > >Signed-off-by: Arseniy Krasnov >--- > Changelog: > v1 -> v2: > * Update commit message by removing 'fix' word. Reviewed-by: Stefano Garzarella > > net/vmw_vsock/af_vsock.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c >index 013b65241b65..d841f4de33b0 100644 >--- a/net/vmw_vsock/af_vsock.c >+++ b/net/vmw_vsock/af_vsock.c >@@ -1030,7 +1030,7 @@ static __poll_t vsock_poll(struct file *file, struct socket *sock, > poll_wait(file, sk_sleep(sk), wait); > mask = 0; > >- if (sk->sk_err) >+ if (sk->sk_err || !skb_queue_empty_lockless(&sk->sk_error_queue)) > /* Signify that there has been an error on this socket. */ > mask |= EPOLLERR; > >-- >2.25.1 >