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 CB60EC636CC for ; Thu, 16 Feb 2023 09:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbjBPJfu (ORCPT ); Thu, 16 Feb 2023 04:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjBPJft (ORCPT ); Thu, 16 Feb 2023 04:35:49 -0500 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322C830B35; Thu, 16 Feb 2023 01:35:48 -0800 (PST) Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31G8Iqe1002114; Thu, 16 Feb 2023 01:35:48 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=s2048-2021-q4; bh=SL/T2E9zoHvblX+NvmN0qtWInTjNQ2z4u5TCpooVc6Y=; b=mfzTXiU1EePuXgBhtm3YoiY8zNk2bfwTzTOwezNVkqQ/xLZaLv/nO9mfS/zC3NWG1n4h NUD4wm+MITKY4auKJpqEwBhaj7uee4Iwun8AKCDcJ+jTQPvKIuIdVUNF4E0qPk2NJ3/2 Bjz6WqDWQPY3CjsIrdLWSe3AmBrGAdXScsdVqY8eiM35NNTmpkbq+WeLfPoM4/Qi9ryh C+eSXCbQqIgc5UhcEGghWxXLMyXl/JvSq1g64F75aCCT3EmGr+XcMqRlYK6MS0gJLRQC R/ZojfGE1nLVlt4M+ZFWxZXcoQlY7HddIXg4fhW37LkD3e5D/ANRwcqglhsWmH0Cc5J7 Ag== Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2175.outbound.protection.outlook.com [104.47.55.175]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3nrwhgf68x-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Feb 2023 01:35:47 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TnjKAwENRP7ph+RDkCkiSMKfSg40P5hYk47EHw0Pq9rML7FnnC74++kLM5lBWaNstQxMZhFi7toxzrn3tih3UmU9EGiIIdgTwMXUon8f6qilKd4aAwrcp1PPkv4OwLufvn9u7hM5z5ikreaIK9V7Of/kQ9PxKoDJTZIcIqgKXj2gBWF8k4hrUhih1XNxRP2xfZwUozo+YWu+yVo0Bi4eiry4Eo4o3+LWXUJ7tnJcWhBCbBmIngL5yJhHxu1qeJee/fkoKN6SOKV6eHOY70K8tvSQOYiVolYP3WaDkurqgxYVEqzCVz6vJBOQnFAe0rPF9i9VBIA++ReA4Wm6GwiAAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SL/T2E9zoHvblX+NvmN0qtWInTjNQ2z4u5TCpooVc6Y=; b=kWWe1LX5Fd69fcR2EkFnzqRP01PbxE8oWwSUE7vTPxCM0FH9o//e3Xz6PWe68Lq6QvdThcrjjf8gy9HWRIGGYAwiLXsTOo8cepmdo5LaXNMwbp+XsJx9olBt5U7pypUeIcqcP0DljMFKCra8osihIKQDEUlLdpGSv2kjttptf2oULJfiV9QQ/CKKb9nmsSeRZCvJy3fY8jrgGgNPz1xz2K1QUkPkC/71H99Hwz1c3wIoFqrdmDrzcFfWv3mcT4RE/qFlpiHvC16qEI3aC8j6hNDlAhLy1g0Hw66dVxwD8aqPCCdRZefwlMQHOhPm7AXElEz/Krk/jelTw0p4UfmFng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meta.com; dmarc=pass action=none header.from=meta.com; dkim=pass header.d=meta.com; arc=none Received: from SA1PR15MB4854.namprd15.prod.outlook.com (2603:10b6:806:1e1::19) by MW4PR15MB4665.namprd15.prod.outlook.com (2603:10b6:303:10a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26; Thu, 16 Feb 2023 09:35:44 +0000 Received: from SA1PR15MB4854.namprd15.prod.outlook.com ([fe80::fb33:6145:8feb:8054]) by SA1PR15MB4854.namprd15.prod.outlook.com ([fe80::fb33:6145:8feb:8054%2]) with mapi id 15.20.6111.013; Thu, 16 Feb 2023 09:35:44 +0000 From: Dylan Yudaken To: "axboe@kernel.dk" , "asml.silence@gmail.com" , "josh@joshtriplett.org" CC: "linux-kernel@vger.kernel.org" , "io-uring@vger.kernel.org" Subject: Re: [PATCHv2] io_uring: Support calling io_uring_register with a registered ring fd Thread-Topic: [PATCHv2] io_uring: Support calling io_uring_register with a registered ring fd Thread-Index: AQHZQNZlbGg7EnGO+k6Pl64fuX2v6q7RUlaA Date: Thu, 16 Feb 2023 09:35:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR15MB4854:EE_|MW4PR15MB4665:EE_ x-ms-office365-filtering-correlation-id: a4867bb4-ffae-43f4-2a69-08db10012d4b x-fb-source: Internal x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AwC5iu9XcdJG+zTTGoqHi03e5ya1P8PQRRfwnngcKDXulND8L8TPL9Q45rgP8bO73T5UEdb/PwZk6uQCf+eKXrwK/flxA+q6FI1geakOFMQ79RFjYKige1JVDzJ6ROX0vwc4lv0IKvW2d/iCXKOOEQZ/BZ7VMs7101JpOgCdectMNdyl3+iSj+Cw5lcfYVeq5V54QifcK7U9a228/L+9HoXHZedjbNXnnucVNmKH1Afn1wQ6/KAPhp4nTxQx0iBIYjNTczmzd7LzLnpFQXXunpcHtutckH8DJGRt9JD84JBYW5MBBHNHt1J23Z1d/uQpd08Bh6nO4mfYJiljgbEzgT2cJSXHP/18xF9gVJGJfZVYMZEP0stCkiZEh9wvkzr047ljCmmZGLf3KrsuYknRUD6Fmxw1aR1CLX9ySKtmOaRybjFIO9xHJdFVCHlYZ/5MOQyA7qSYW6ZOx9m4n2b2yNC48g2C4wpNbVLcSm0ob4fiQ9nu34NcZjn/Gy0JU9ZmwuFl8ik4GKl2n3cbUJ7guDULdeJ5Cd1mTXToSfBgOY4avunM0JdaUgwmVQ9L+SLYs1/mfZ6AZIyzZw44/datBwgNqEdJSN+3XqFKzBFSLBLlFKT2HkA6Ry+XdpMz3Xi/ZMeCRd3r89W5LWag/96d15fkzwHC3/sMIzKkmD85XIK00CkZGYasNZojNAgogyj9tz4gtBjsndBLiP6D3lxReQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR15MB4854.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(396003)(366004)(39860400002)(346002)(136003)(376002)(451199018)(86362001)(38070700005)(122000001)(38100700002)(6486002)(36756003)(478600001)(71200400001)(6512007)(2616005)(186003)(6506007)(66476007)(64756008)(8676002)(66446008)(66946007)(4326008)(76116006)(2906002)(91956017)(5660300002)(8936002)(66556008)(41300700001)(316002)(54906003)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-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2V3RP?= =?utf-8?B?K2lHcUpGdUxlTnV3L2ZkRGNJQVprZTFEZWM1T2pvOUtCTEZ5RzV3R0lodFBX?= =?utf-8?B?dkhXZmk5R3l1bXhsT0VDK0FycXp6QW8wTENPdnNsRUNEa3NpaWZaZTIwT2Fa?= =?utf-8?B?RlBCNkd0Titic1ZJVS9aaHI4UDlhL1lReFgrWUJtKzNCUW1oS3JWQithMGxw?= =?utf-8?B?QVd5S3pCeTZlY2ZSSWo2d3F2cTd4eTFEWSs3M2RVckFmRExYdVBpWHJGemxl?= =?utf-8?B?enZ4RmlDZnVQdjZXaEFKRmp0ejdyVGdYcjNieHUwd2V5a0NnNWJFWHRadWJE?= =?utf-8?B?MVlaTmZETmZsdjdCZm95TUcrV0ZXT3BaN1dEbWhmV2hRUEtzZWxWT1lGaWhi?= =?utf-8?B?Qis4TVRweW5jSzlhaml1UTg2S283NWFaZVorcnU0dDVpQVkxSVZ3RC91YTFQ?= =?utf-8?Q?954f91bLdySAog6dIRV2fps=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: meta.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR15MB4854.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4867bb4-ffae-43f4-2a69-08db10012d4b X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2023 09:35:44.3657 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aLXOECtEjr2u+C0rsZtiLSDvG9G0DM/DJzshW25omYUgIVlS+F5/hGh4M2W2AjQK X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR15MB4665 X-Proofpoint-GUID: SdcF-IdIdVlzuduJSexSNWEjDYt_9nCL X-Proofpoint-ORIG-GUID: SdcF-IdIdVlzuduJSexSNWEjDYt_9nCL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-16_07,2023-02-15_01,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org T24gVHVlLCAyMDIzLTAyLTE0IGF0IDE2OjQyIC0wODAwLCBKb3NoIFRyaXBsZXR0IHdyb3RlOgo+ IEBAIC00MTc3LDE3ICs0MTc3LDM3IEBAIFNZU0NBTExfREVGSU5FNChpb191cmluZ19yZWdpc3Rl ciwgdW5zaWduZWQKPiBpbnQsIGZkLCB1bnNpZ25lZCBpbnQsIG9wY29kZSwKPiDCoMKgwqDCoMKg wqDCoMKgc3RydWN0IGlvX3JpbmdfY3R4ICpjdHg7Cj4gwqDCoMKgwqDCoMKgwqDCoGxvbmcgcmV0 ID0gLUVCQURGOwo+IMKgwqDCoMKgwqDCoMKgwqBzdHJ1Y3QgZmQgZjsKPiArwqDCoMKgwqDCoMKg wqBib29sIHVzZV9yZWdpc3RlcmVkX3Jpbmc7Cj4gKwo+ICvCoMKgwqDCoMKgwqDCoHVzZV9yZWdp c3RlcmVkX3JpbmcgPSAhIShvcGNvZGUgJgo+IElPUklOR19SRUdJU1RFUl9VU0VfUkVHSVNURVJF RF9SSU5HKTsKPiArwqDCoMKgwqDCoMKgwqBvcGNvZGUgJj0gfklPUklOR19SRUdJU1RFUl9VU0Vf UkVHSVNURVJFRF9SSU5HOwo+IMKgCj4gwqDCoMKgwqDCoMKgwqDCoGlmIChvcGNvZGUgPj0gSU9S SU5HX1JFR0lTVEVSX0xBU1QpCj4gwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqByZXR1 cm4gLUVJTlZBTDsKPiDCoAo+IC3CoMKgwqDCoMKgwqDCoGYgPSBmZGdldChmZCk7Cj4gLcKgwqDC oMKgwqD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