From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3E442CA8 for ; Mon, 6 Jan 2025 11:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736162046; cv=none; b=Wl+KtVeWjUeHhh31eMyLoKjDUOS/dpQLmYrI+UjnDGIWipsIWACRfcGOo5g6rNL/G3uBOkKxFEVSoTa2b5YPmvCPxuunUSoupReptFunqb+ixel1la6acNZm1PYuy9KyUSXjYoPtrCsi/sY40T5aVoWO6eqaFC3HJ6onfS+kO5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736162046; c=relaxed/simple; bh=D5aU/gnP/zNwNzXhfTL+vuxIbL0PsruSoR5AItoLIbg=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=GanRXrCRw+HEMrr4Py4lPmSkzDW2pyOjDhScx2nvMwkwO6Npgvn4nGIKpfRT/7Sr+SfCHeFRuaMjcdKgYUxXdhSmOOsjCdEzkQm+yCm2pzgoK4abOv3F99dARfZW6mTIPG2K1EVejqpK84d4exsEkS9ARiib+oX8XijdJ1GcuNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4YRWly0d5Lz20nhb; Mon, 6 Jan 2025 19:14:22 +0800 (CST) Received: from kwepemd500010.china.huawei.com (unknown [7.221.188.84]) by mail.maildlp.com (Postfix) with ESMTPS id C064A140135; Mon, 6 Jan 2025 19:13:59 +0800 (CST) Received: from kwepemd500012.china.huawei.com (7.221.188.25) by kwepemd500010.china.huawei.com (7.221.188.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Mon, 6 Jan 2025 19:13:59 +0800 Received: from kwepemd500012.china.huawei.com ([7.221.188.25]) by kwepemd500012.china.huawei.com ([7.221.188.25]) with mapi id 15.02.1258.034; Mon, 6 Jan 2025 19:13:59 +0800 From: lizetao To: Pavel Begunkov CC: Anuj Gupta , Kanchan Joshi , "io-uring@vger.kernel.org" Subject: RE: [PATCH 4/4] io_uring/rw: pre-mapped rw attributes Thread-Topic: [PATCH 4/4] io_uring/rw: pre-mapped rw attributes Thread-Index: AQHbWr7wWoh3JM7uW02tpU6pwSvT/rMJnx5w Date: Mon, 6 Jan 2025 11:13:59 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 SGksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUGF2ZWwgQmVndW5r b3YgPGFzbWwuc2lsZW5jZUBnbWFpbC5jb20+DQo+IFNlbnQ6IE1vbmRheSwgRGVjZW1iZXIgMzAs IDIwMjQgOTozMCBQTQ0KPiBUbzogaW8tdXJpbmdAdmdlci5rZXJuZWwub3JnDQo+IENjOiBhc21s LnNpbGVuY2VAZ21haWwuY29tOyBBbnVqIEd1cHRhIDxhbnVqMjAuZ0BzYW1zdW5nLmNvbT47IEth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