From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 0281813B7AE for ; Thu, 9 Jan 2025 03:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736394040; cv=none; b=Y/GEkqep05UyqmwJ4O7UFUnFcE0ZSTtCeVhzKrZt1hxgeN+/ZVhV6gAVWUTE9UV2L8Hn17VERGMOe3jnSgkDYOAn8IurRhScnM/KNb7ITceqNDvFsCawUFm+ssDEQRHkRpzRnbUAwsVAJBqPpdvkmdbIO0dJCQ3Z9wsEYyMFniQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736394040; c=relaxed/simple; bh=F0NKAYRusgvE1rNwXBhC/7b7Zz+iwvOaAppVLv5unmM=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=PZgB+wv5740Or8RfUOzgV8+IRiBY5JSPrRWYZV8qpu+9LDCR2PAbSTx5mrjB8CLFXyQCIHHQnOs2ScIcVYIchcG5225JlwnQmlWphPG8vPKR1alFO4pgIoJ/yytRXDGQRrAsMzLI2hAUlHLqkpgkC85Tr8t4hYUQdK7lxaejr/E= 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.191 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.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4YT9X53CMtz1JHJb; Thu, 9 Jan 2025 11:39:49 +0800 (CST) Received: from kwepemd500010.china.huawei.com (unknown [7.221.188.84]) by mail.maildlp.com (Postfix) with ESMTPS id 876E91A0188; Thu, 9 Jan 2025 11:40:35 +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; Thu, 9 Jan 2025 11:40:35 +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; Thu, 9 Jan 2025 11:40:35 +0800 From: lizetao To: Jens Axboe CC: io-uring Subject: RE: [PATCH] io_uring/eventfd: ensure io_eventfd_signal() defers another RCU period Thread-Topic: [PATCH] io_uring/eventfd: ensure io_eventfd_signal() defers another RCU period Thread-Index: AQHbYib+SUr4irNljUW7eN796cnLHbMNy+bw Date: Thu, 9 Jan 2025 03:40:35 +0000 Message-ID: <1722809acef1438fb99fb8b4ab435039@huawei.com> References: <7812ebd4-674f-4ad7-8c13-401684e8099b@kernel.dk> In-Reply-To: <7812ebd4-674f-4ad7-8c13-401684e8099b@kernel.dk> 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 SGksDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEplbnMgQXhib2UgPGF4 Ym9lQGtlcm5lbC5kaz4NCj4gU2VudDogVGh1cnNkYXksIEphbnVhcnkgOSwgMjAyNSA3OjQyIEFN DQo+IFRvOiBpby11cmluZyA8aW8tdXJpbmdAdmdlci5rZXJuZWwub3JnPg0KPiBTdWJq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