Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp377145imn; Wed, 3 Aug 2022 07:40:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v0YljGi8I4/3AdtZTZ557VpB0iz5n0NotI0XEI3a8xqfKZW2FZ1yXN1R4LZtXuAinoIfu+ X-Received: by 2002:a05:6402:292:b0:43c:ee5e:a5da with SMTP id l18-20020a056402029200b0043cee5ea5damr26715076edv.181.1659537653802; Wed, 03 Aug 2022 07:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659537653; cv=none; d=google.com; s=arc-20160816; b=Eld9/Ed8t5fczOv8XUoLYb1edPvwShixTtBrVW7Dk6Za4QdlmGBM5EiPBlwAvx2gxe KnXj82STBrWWSoDoG668bxKQS75CBS655VlIsy4cNJofg0hMBL/jMcXcP/ZC0rU9p1sd xlG4HVTy//7v2rni2Jykj1NV0nSifA2nUKifaGiw/r8gjsU+KU8DegjuHCW8XLmnFvyR RPpzPztUe9oELvQMAUmoXa4ov+v8o4mbmmAa4QfLukb4YMYUhg0UptD++XdAiCZwgp0E orxL4OIjYKibmagE5pERP6hFhqv3ZioJjcOwCHBS2g8vbAt4WI0faU4h3rAqdPdnJyGx qKTQ== 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=wpo5GG48uOb0QHU/IVYOrfHKygO1N8dbLInG7RU2KME=; b=U9nGlsY22JI/SkTusj2JSrmAVLhzhRUsxjnPtNDIS54/CT4w4XS8fN7TgpcGtK33F4 T8UoPUaA9zPfX+cITaFrIlWnaZd/wMxWUYzVp8jN3BRfTzo6IsTfsqWky/vAeMWCJdZu rILF+eQNWOSfVQC27Ll9SM/VOWtuzI/IWZMPNBe7TXi0dN4IBQzIu8Jun6lLrHd+9Q1K InaGIGgxHz6SBczhxdj5YG3HjhdYsR0VTAwleKRazm0TE62FgfdK0OFRq9u/J9cXJAVz OQDF/yF6w3T0dZrZ5DAerIVjkgHmRpVYVwvkoXqsCjc3FrLuThgpdRFUJugv0h0bMcQU 2bZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="sR/N9NRj"; 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 dn2-20020a17090794c200b00711fd60fa17si16626301ejc.34.2022.08.03.07.40.28; Wed, 03 Aug 2022 07:40:53 -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="sR/N9NRj"; 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 S238724AbiHCOGO (ORCPT + 99 others); Wed, 3 Aug 2022 10:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238709AbiHCOGM (ORCPT ); Wed, 3 Aug 2022 10:06:12 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B0DB1B790; Wed, 3 Aug 2022 07:06:08 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 936A85FD2E; Wed, 3 Aug 2022 17:06:06 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1659535566; bh=wpo5GG48uOb0QHU/IVYOrfHKygO1N8dbLInG7RU2KME=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=sR/N9NRjM2iMLwo/DNzqSwWRFSB3536YjyrLmV5Pcvcjdgc6OF5IOg7DR/S82Ct/z SFr+uR0KKa12x66xvvBE5WmUzPhc8EzrvZ/lJBldG6KVAV9TWJVXUDVdDOBJ5Ugg4x 8JP8Xfh3E1uvPO8cpOzYa1gtpBhJAky6GjHqZuWfdtcKYQ0iYMQzKR1+b+uNQ/LUaO Mcv2QX1M0qCeUmlN8iXKjcYsJTZuQRHWlM+vvbabb5FP+PXPopnPNjim4hMmu0Fq4q nB/9QcR5hOhp+RF4i5Fp5kdbuzn7lXScCLkZI1+Iu8M54535CWqJEDvCMZEUTnWiJd fgTlbv1gSumEw== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Wed, 3 Aug 2022 17:06:05 +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 8/9] vmci/vsock: check SO_RCVLOWAT before wake up reader Thread-Topic: [RFC PATCH v3 8/9] vmci/vsock: check SO_RCVLOWAT before wake up reader Thread-Index: AQHYp0Iky9TC5FSTTUiSWqj6+AelWw== Date: Wed, 3 Aug 2022 14:05:52 +0000 Message-ID: <5b7e133e-f8e1-1f71-9a3c-ac0265cffb63@sberdevices.ru> 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 Ynk6IEFyc2VuaXk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