From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6922FEB64D7 for ; Tue, 20 Jun 2023 08:26:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjFTI0R (ORCPT ); Tue, 20 Jun 2023 04:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231902AbjFTI0O (ORCPT ); Tue, 20 Jun 2023 04:26:14 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70FF7127 for ; Tue, 20 Jun 2023 01:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=From:To:Date:Message-ID:CC; bh=VFPzARwqn8nEqf1DaCc2+EIZl65hVp6IKm+UjmCiVXk=; b=NvqI+xXDzmToVT5BnMUqPJ0q31 UGqNaEwdT7JG88QnG5m/WGsZvHvSlJBPvje013L4WVwjT1d6z4FTq8JogvL9ViIvE2fk77/OUYth/ sbY0SVtkMvzx8Lz1vdCXqEHNEdhcE6SGhHasZBK4D0S1Z1pCIrC6jBh7Ej50VTTGI5ZVvBev6NAjP 7l/ubdX3bUqGfbFLEPuah9sWXdgbJm68/YbroUe4sSZOC1rDAwxDt4DGEUzEj0mj0xsJ0+TnF9N/m 10Xr6tp3qhv3aYe8Qu9XuHjs3TjWaXNoEflqd3Jp1zKNEfw8vw0CGILUkSkc4nwT968Auz1fg8p53 BovsPHr0yKErptGlkvig3KLQoV2g0s/vAwOee8eRiPC2PaHLx0pNkYXigEQWXTLF4zWblpiTUJ043 65psiRWZTDDRCOuio/GwTnGFkAv0wVCx7e4MpJMl9LZUYX5PnMbYEEkrwXIj4HMMLbc5VkbBnffQ1 IQAODTxyxbZA2H3L209Fv3x8; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__ECDSA_SECP256R1_SHA256__CHACHA20_POLY1305:256) (Exim) id 1qBWgk-003CtV-1A; Tue, 20 Jun 2023 08:26:10 +0000 Message-ID: <2a7309e2-1f1e-f1a5-0b89-2b1431fc331c@samba.org> Date: Tue, 20 Jun 2023 10:26:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] io_uring/net: disable partial retries for recvmsg with cmsg Content-Language: en-US To: Jens Axboe , io-uring References: <472c1b08-0409-bd55-7c4a-6d33f07efced@kernel.dk> From: Stefan Metzmacher In-Reply-To: <472c1b08-0409-bd55-7c4a-6d33f07efced@kernel.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org SGkgSmVucywNCg0KPiBXZSBjYW5ub3Qgc2FuZWx5IGhhbmRsZSBwYXJ0aWFsIHJldHJpZXMg Zm9yIHJlY3Ztc2cgaWYgd2UgaGF2ZSBjbXNnDQo+IGF0dGFjaGVkLiBJZiB3ZSBkb24ndCwg dGhlbiB3ZSdkIGp1c3QgYmUgb3ZlcndyaXRpbmcgdGhlIGluaXRpYWwgY21zZw0KPiBoZWFk ZXIgb24gcmV0cmllcy4gQWx0ZXJuYXRpdmVseSB3ZSBjb3VsZCBpbmNyZW1lbnQgYW5kIGhh bmRsZSB0aGlzDQo+IGFwcHJvcHJpYXRlbHksIGJ1dCBpdCBkb2Vzbid0IHNlZW0gd29ydGgg dGhlIGNvbXBsaWNhdGlvbi4NCj4gDQo+IExpbms6IGh0dHBzOi8vbG9y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