Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp370083imn; Wed, 3 Aug 2022 07:23:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5WvsJwdnkX0MZTGnPWB9td5Cd7s00XQHL69KvU75XitWYPX/SRIH7vRPuo3E4FuS3o5SZx X-Received: by 2002:a17:903:2310:b0:16e:e0c0:463d with SMTP id d16-20020a170903231000b0016ee0c0463dmr16950282plh.18.1659536636945; Wed, 03 Aug 2022 07:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659536636; cv=none; d=google.com; s=arc-20160816; b=ADVqwEOYEXKxMzBxDf59vEz1ewS0ILZFD7B3/VfiN1UeaAPh3m6NHHJkRssSYI8c0R LkQWeBQVZl7niDwD+w3KfD090jnK3K6rp5VDUff54avn6KZw8d/Wh+9XjWs4iv/cpC8V CIe3VeZ0RFf32WwLQyyMMnTRgYZQ0ode+/vg6WA494cFnxDnl4wmYvtvR+uciLgGH7lU JB+qB3pHxu2S+zNVCV++iopDQKY/BGjQbq4BB39o0/leBE89pkQVb4RqVdUl9L7Eh/BX VDN5iml3ukYMPkDehfPyyo4q3sfmcwZgTwAOze29JpTyAwg4BYKPFHKy7Ul5voko6vJJ QS/g== 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=wTaHH8BmuaExuBkPRnjC0mJlXosASPqbHI+ifY336lDzwDCwwZcHqnkaf36GWh5OOv lNUWZYw/jUykZ3VF5TVcvrGVR8oT60Ye30+mgM5xgLt+IJ1fZpeFQHA2+YjAlkPGaXLf HE7quafS2Q3uCa6sQbHZ3Do41V0hvDCu4snwA5I2Hy+eUesRKCXl8948V5+BmEGoyjvm nn8eVWyCrDVlov9aMAkjOtGEpvDe0UZiSCPQ0f9xEN58u+W6vbshitADnxx3YTjfKCQ6 CMo0S+g4NanoleL+GKQKluIGIVsFknF0dFR6+yYtSkCQnll/jbxTxyL3YQJ5+7pyNB+9 bvWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=HGsGwwld; 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 n18-20020a634d52000000b0041aee1c2913si18744902pgl.5.2022.08.03.07.23.40; Wed, 03 Aug 2022 07:23:56 -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=HGsGwwld; 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 S238564AbiHCOEQ (ORCPT + 99 others); Wed, 3 Aug 2022 10:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236494AbiHCOEP (ORCPT ); Wed, 3 Aug 2022 10:04:15 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0332F003; Wed, 3 Aug 2022 07:04:13 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 116565FD2E; Wed, 3 Aug 2022 17:04:12 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1659535452; bh=6XZQtWxl9pDfCffcJW86vuM5/TgZ8YvSCAXMREbLKGk=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=HGsGwwldJ5JnGyr5nIzZMkNbnQvF6r2IxyQl45jcOp5iFbbHMoJBoDEYFxJ0YDM7Q zMUEnauI5wEb98/DEFRuCmz1twxbIpOP6gkBbjPNNqbPGsMr2RkFv0ppQm2uZQqVKQ US+VgwLAcUXj4vCkFYsTrkKNdMrbsas1yUCmE5P/tT30pR0pEO7wsZRDqYDMjhqCuo JPLtZcPQvIxv5C6BXcKydlHnkdn+yzfss8q6KQU+j2NlgLd1y/f3zuCocDoV0nKoYu z5TopP9mXas3/ONsLTExUGdUcOX7AIgzdiMPoYEhZPR9feTg4dbqLxRAS3MQf+clWB t02DRwRFk77Kw== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Wed, 3 Aug 2022 17:04:11 +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 , Bryan Tan , Vishnu Dasa , VMware PV-Drivers Reviewers , Krasnov Arseniy , "Arseniy Krasnov" CC: "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "kvm@vger.kernel.org" , kernel Subject: [RFC PATCH v3 7/9] virtio/vsock: check SO_RCVLOWAT before wake up reader Thread-Topic: [RFC PATCH v3 7/9] virtio/vsock: check SO_RCVLOWAT before wake up reader Thread-Index: AQHYp0Hf6rlyzBtLk0aQZEnBg4ReJg== Date: Wed, 3 Aug 2022 14:03:58 +0000 Message-ID: In-Reply-To: <2ac35e2c-26a8-6f6d-2236-c4692600db9e@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: 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/08/03 07:41:00 #20041172 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 Ynk6IEFyc2VuaXkgS3Jhc25vdiA8QVZLcmFzbm92QHNiZXJkZXZpY2VzLnJ1Pg0KLS0t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