Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1237227rwb; Thu, 18 Aug 2022 23:08:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SovUY5Lefw/bszsRiWOs5/Ksjn0MGxuOKqAYUiDHyTJK5XpkkNfKI5G/HTE+k5nsFLrgO X-Received: by 2002:a05:6a00:2991:b0:52e:b387:b3c6 with SMTP id cj17-20020a056a00299100b0052eb387b3c6mr6391240pfb.11.1660889333942; Thu, 18 Aug 2022 23:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660889333; cv=none; d=google.com; s=arc-20160816; b=r+HyYL+/mXPZhpV23r5lj4dkkWbQaIC1n6//Vv+SHymo8bKa515OfkjDONICYRPzXu IjhBWDAsQJQfd4kmoVh/TYyTlQV80kZsNv9C9ebFpV8pD4MfGFj0rs4sGmtPjN2/2SA4 4ShqA2QDpzcfpgBPq3SEv11eB2f2QS7SzDVnmd+sOUPjD/pDPxkz7pQDn8eNm3RBhXht efAkNMXTurj6v+dCKGCexumSksvBztsI7GBtrwuuDtnUX21HXYjhDA17b/S8joi7gG3G jp0Ma4EdwRibY729pj/ofniTUfYZcE3FaG7dhxs0gqQOa8v+jTThiyNOp6T5SSbCqGmG 1yCg== 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=egIuAYw3jj8vWXZAF+IIfbzmFTudXDhkHlSaeT+dExQ=; b=gt+orM9Df/yBfm2HWoy9CR0ixkoMGf2+lQH94DpoUIYIp7vAPm0SnT21vzx+wuJTlX r/OOnhA1ceqxRkA+nf1qk3TaDkG/HeCIlw7QTyUik7/nrLlmewj90VjX/8elATy+kqr5 kuOl6V6jdfSxepLpcAgQGqT4yuFGztzsMcOQ4cCq0jy9huPvxoZjG5acB0WTrhsiHAjN 6P4wiGJ/cfyNGRuh2InT8TjIC0NEDsrUiZ2wKyoniM437b5Y6smseNpukkqMqD0QhGD+ pq3fl4HCJ8Ss1IObQaOwZNvd4JoGOBDzftAyvozR3yVgfHGRfiKm53C3d+5p3447A2gH fvtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=DmdsI+NO; 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 q19-20020a170902789300b0016d313f3d0csi2837034pll.468.2022.08.18.23.08.42; Thu, 18 Aug 2022 23:08: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=DmdsI+NO; 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 S245532AbiHSFmI (ORCPT + 99 others); Fri, 19 Aug 2022 01:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240299AbiHSFmG (ORCPT ); Fri, 19 Aug 2022 01:42:06 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C434DCFC6; Thu, 18 Aug 2022 22:42:04 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id ACBC65FD07; Fri, 19 Aug 2022 08:42:02 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1660887722; bh=egIuAYw3jj8vWXZAF+IIfbzmFTudXDhkHlSaeT+dExQ=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=DmdsI+NOeUlo5mBvYG62MF/q/YMIvZ9sgdEjWm20iGcCu12A+QHC83AXeU9JN2sZk YkZvJFbbh2EOEVa1pOSC3dEXNxFsDtVqyBnzg9o8/waY6iKfIQZKo4CK7/kC+o4Y8S z/M9rH//VG5Q7N8wOwuY2nwbjMepbvdp/hRSPOzQtyX6sWkCFHbpbivfJNd+iC6m8W QBciN1OPT5JX6+51IDf4kBOHdH2UR08jdw62M+ywu48eTNOjAXCMgfl4xXv0MLxLjW M9toKlU66n0ENv0j3sFoGAXCQGiNSYghzCNQeLKaaD31V/tMbclowC/m2ura+VEqeE 5A3rZInx2G2dQ== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Fri, 19 Aug 2022 08:42:01 +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 , Krasnov Arseniy , "Michael S. Tsirkin" 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 , VMware PV-Drivers Reviewers Subject: [PATCH net-next v4 8/9] vmci/vsock: check SO_RCVLOWAT before wake up reader Thread-Topic: [PATCH net-next v4 8/9] vmci/vsock: check SO_RCVLOWAT before wake up reader Thread-Index: AQHYs45Y9ikKdLgboEifUIJqsMZamw== Date: Fri, 19 Aug 2022 05:41:35 +0000 Message-ID: In-Reply-To: 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/19 00:26:00 #20118704 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, T_SCC_BODY_TEXT_LINE 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 aXNlLCB0aGVyZSBpcyBubyBzZW5zZSB0byBraWNrDQp1c2VyLCBiZWNhdXNlIGl0IHdpbGwgd2Fp dCB1bnRpbCBTT19SQ1ZMT1dBVCBieXRlcyB3aWxsIGJlIGRlcXVldWVkLiBUaGlzDQpjaGVjayBp cyBwZXJmb3JtZWQgaW4gdnNvY2tfZGF0YV9yZWFkeSgpLg0KDQpTaWduZWQtb2ZmLWJ5OiBBcnNl bml5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