Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2572651imi; Mon, 25 Jul 2022 02:14:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skTfCxe7xeeGSWBRgzJ+6Y/Po7v4FBkTP8dz4uIL/pgEOarZKNaKc/taax5igN4o0lNaY7 X-Received: by 2002:a17:906:cc12:b0:72b:67bb:80c3 with SMTP id ml18-20020a170906cc1200b0072b67bb80c3mr8955287ejb.668.1658740465036; Mon, 25 Jul 2022 02:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658740465; cv=none; d=google.com; s=arc-20160816; b=F+e1qnMZlgkxfCQr1w+BNZGvWxS3LLpRy4oOvBBYBwKY+hVzRqiUNXwnWOc471cTz3 J+G+Zk8McSk7NjOA/PBtso+8TXd374/M1LaYfpm+8gtr3WeraPPdMmyl4mOTgNvl4XbT sXdrq7kY2Va+F7SCy5bBqcnFFB0O7btFO4rLK5lT9kl4fZ1JyawehIgyg5Trg1eFYkEe woHi/crCg9mS2jyjXD4LjZo4sOb7Vny6CWPWIgqwVwiTrLm84mu21OTMmeRrNOily4KV gbjVUaNdvACxfF3bhLUJP2D2AZevaYEC/DztU//mYR/Dt//eslRrrx/3qWO07vCQsbQ3 c/Zw== 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=0VolYYzByKFenHk7cNZW+B/GD/dVG5AI5iMaU934WLI=; b=e8XZuwQIpGKnS3y4cwzDpQH04rftrvbgWF0g5+0k1J0p6GqgDjO2l0UOrOQrxKRVhs 5OE7+RFPpEu+uhgCgT+BBV0HcKz4UUTysk7dH1fh7fV2wxVAmY8WhUSyuGiqvIq/VSRj AobGTT5PCXGPKXQNNpo4QPQg9cXsvkWFpivSeQigqJzxgCmkGd2AcPd0fW5QzAOkiBuV YxqnaNP4wiUMGTJYvB6/PTHImmDkDMiCS7YUQGjMU4pPbQJB8Adt7h4cfECf94E33wgb WMpFJHHvhjktNCnMKrG3qEr3v1duKmwo6+8hCbUivo2hcb9NXrZk3D9QeoUFFdsXG7Vu 7msw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="pl/k/J4d"; 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 qa44-20020a17090786ac00b007267675e19csi12736417ejc.691.2022.07.25.02.14.00; Mon, 25 Jul 2022 02:14:25 -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="pl/k/J4d"; 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 S230099AbiGYIN5 (ORCPT + 99 others); Mon, 25 Jul 2022 04:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbiGYINw (ORCPT ); Mon, 25 Jul 2022 04:13:52 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A530C13DD2; Mon, 25 Jul 2022 01:13:45 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 190835FD0B; Mon, 25 Jul 2022 11:13:44 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1658736824; bh=0VolYYzByKFenHk7cNZW+B/GD/dVG5AI5iMaU934WLI=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=pl/k/J4dr5/K2zhWjDqsI3QB4a9FNrML10R9GEmttN+XJjuttiEBF7ZMyhqPbFTP7 T3wvE53MGKHiFk8A8n+VdPOdRT+HH8hkJKz1cJGNxM1xgEZkgA2N18fqkT0lhJJa6R 5ofF5p6KrQxgDMabyrgHjD+AUDQRY4b7kWuw7G9NhObGiXkW/HZ/mnLJEhwZOT1NJA u789hjNHVfSntbLj7RIAOI5RyP5F2psxIpA2HUY5ylq0cPMPdo0WMwC1ytffQH0YVJ Mv/tAicXkZ813BF655eNtgdGCFn9Cq/xBdDWB5PFxZgk3F9f3aWyPhFRQ8GYMsmk3X k3OxeFJPcx5ug== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Mon, 25 Jul 2022 11:13:42 +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 9/9] vmci/vsock: check SO_RCVLOWAT before wake up reader Thread-Topic: [RFC PATCH v2 9/9] vmci/vsock: check SO_RCVLOWAT before wake up reader Thread-Index: AQHYn/5oY29w5nBisUCpLo7sMc0FdQ== Date: Mon, 25 Jul 2022 08:13:23 +0000 Message-ID: <664ce269-ba46-926e-9c34-070079a7ae3e@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: <1F5A3AF0531B954A9BA3E54B91976C95@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 Ynk6IEFyc2VuaXkgS3J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