Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2565257imi; Mon, 25 Jul 2022 02:01:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJJoWiK3/bljYwmM6MSG9pN/WHnTUujHhfGf8JvRL+ImetxvMbLAAhfiOgHQhfC+PgZR8u X-Received: by 2002:a17:902:760f:b0:16c:ae59:c9b2 with SMTP id k15-20020a170902760f00b0016cae59c9b2mr11461452pll.0.1658739670677; Mon, 25 Jul 2022 02:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658739670; cv=none; d=google.com; s=arc-20160816; b=gQILgjXETRgTok9278siQ/1p7Qcduu2BYOJlURtxZ9NVdG03mYQ6bdLg5RWEFHJH/O EWlha0kvr66Dbp316GQ8WjNqWtgGsCAHvqCz22O2ZS7bMTmrMvhj/T/ZvglLwp15jL6b cyTDNz0nM/YRBXIUqh/UgYzHH0hsd7DYPctn/pnD/eN6mP9SBZnzyrTwZETiFb6ki3l7 XnwRRg3A9LPVk/wYV4jWcVqlve3Xkb6l6eA4HCqpjoz7ONuSoWkyRF+hobDy+xMgIiGg hOpp66oHHL/Jvk3liSYrA9jTyMn8/hYxe/Bs1aACVFk++uq75QHW5s5A1bF4ubzNm9Mo pIdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=6XZQtWxl9pDfCffcJW86vuM5/TgZ8YvSCAXMREbLKGk=; b=bSqkfEe6YT4vgTD0v9eC2YSOqOwRJYWbiA5tnkQk/GELlZu5VVuKNyeaZ8agE/eo/i ERhfdrL4+7uuj8aRyGg9RQmsvp7cTIuwzz29Ca7m2gxn9jI/pF4tdQyEN/bYq+nkQa2Z 2oahmiyxbeh5mIQ1c8hPfTshBmBi3JcsyV/1BXRS5OFxCzqUgQiKMGCihd57IHObwfUV TKGicqvhdAobWgU42FfxOYOwwRDFLksAWJ4xO8B1sYnapfQivgCkwh2sH0u0OIvtyt/X 04S2GJAShD6O8rUFQBVb1L9e/d6cHKIMvoChnuUyTWON+ALqh7vpkDypwbNbpy/rF9tr aURQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=eYz29V8S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a056a00191600b0050dcf85b9e1si15202593pfi.141.2022.07.25.02.00.55; Mon, 25 Jul 2022 02:01:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=eYz29V8S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233722AbiGYIL4 (ORCPT + 99 others); Mon, 25 Jul 2022 04:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiGYILz (ORCPT ); Mon, 25 Jul 2022 04:11:55 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56FB13CE5; Mon, 25 Jul 2022 01:11:53 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 031455FD0B; Mon, 25 Jul 2022 11:11:52 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1658736712; bh=6XZQtWxl9pDfCffcJW86vuM5/TgZ8YvSCAXMREbLKGk=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=eYz29V8S80mjj6Cu3OXN/JPf+FO5amHW3qjlJXQnM1fB7txMjH/sIdNnoTMm68HTK SVprIGXmR+/grmDp/MmjWirkAnciVVILfoG34W2XtG3BlHMFJlEPPOLqBX97mu4w6k Ieqz//IqdKPi/0vjlqDnyetGnixehtAzwccq0sG4an0GbNGDg//nb8N10ocowWohoR GirePWBGl9lgBiro/jEOM4sCiCyEiOXNaD8YmhkJPqcSv36Tia4LN5M9BtpZZaAY5h d0cF2EP02CP8+rVFVGMTSE5rkr9KUX+N/GMHoSvnugjjZehQ9fraGe1M3koK8JdCnQ prqlLVwOlgmGQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Mon, 25 Jul 2022 11:11:51 +0300 (MSK) From: Arseniy Krasnov To: Stefano Garzarella , "David S. Miller" , "edumazet@google.com" , "Jakub Kicinski" , Paolo Abeni , "kys@microsoft.com" , "haiyangz@microsoft.com" , "sthemmin@microsoft.com" , "wei.liu@kernel.org" , Dexuan Cui , Stefan Hajnoczi , Arseniy Krasnov , Krasnov Arseniy CC: "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "kvm@vger.kernel.org" , kernel Subject: [RFC PATCH v2 8/9] virtio/vsock: check SO_RCVLOWAT before wake up reader Thread-Topic: [RFC PATCH v2 8/9] virtio/vsock: check SO_RCVLOWAT before wake up reader Thread-Index: AQHYn/4msdZhsnhzrEat7NUwhk8xxA== Date: Mon, 25 Jul 2022 08:11:32 +0000 Message-ID: <821eea3a-f449-c889-4c43-6665e9421d95@sberdevices.ru> In-Reply-To: <19e25833-5f5c-f9b9-ac0f-1945ea17638d@sberdevices.ru> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="utf-8" Content-ID: <12F1E4F7463A144DB443C3811EAC5452@sberdevices.ru> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/07/25 03:52:00 #19956163 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBhZGRzIGV4dHJhIGNvbmRpdGlvbiB0byB3YWtlIHVwIGRhdGEgcmVhZGVyOiBkbyBpdCBv bmx5IHdoZW4gbnVtYmVyDQpvZiByZWFkYWJsZSBieXRlcyA+PSBTT19SQ1ZMT1dBVC4gT3RoZXJ3 aXNlLCB0aGVyZSBpcyBubyBzZW5zZSB0byBraWNrDQp1c2VyLGJlY2F1c2UgaXQgd2lsbCB3YWl0 IHVudGlsIFNPX1JDVkxPV0FUIGJ5dGVzIHdpbGwgYmUgZGVxdWV1ZWQuDQoNClNpZ25lZC1vZmYt Ynk6IEFyc2VuaXkgS3Jhc25vdiA8QVZLcmFzbm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