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 1777C2F56; Mon, 13 Jan 2025 04:40:52 +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=1736743256; cv=none; b=PnTBWvEzbJKWw/shYPZrXyW/4CXLnMgkFJLTpT/zHG7xoF2Ul3qtOwF9ABJhagU6Ar5+p3n19p/DR5MqmkfxwpnlMbGxtgTzbstSnyxc3/5h/5QO06FP/P0Lz30qyU3Axqp6yMeIbJKtQ89Ox6H6ic+twO7NxE34PfehHBEFwAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736743256; c=relaxed/simple; bh=cVHDtU1Ye/Co0xDzOHaJcHrb83HM5RcLbXbyvIPVLiY=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=BB55hxu3fI5ZlG5u03Fd+1XxFN1M3gt2d+PF6v3Kzfn4eawMv6LAPTVVve45o0H/5YVfnhI7Z3dfzK3CMDmuHTvTmwAl/sj5hMW1PV8bP3mcAp+OwB6PIpqJMFA5vJ7IQTwBNuQrszu2c6x/NOfEYM+VaYjrob0gkGBuVBW/Qkc= 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.162.112]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4YWfd24tmQz1kyCV; Mon, 13 Jan 2025 12:37:42 +0800 (CST) Received: from kwepemd200011.china.huawei.com (unknown [7.221.188.251]) by mail.maildlp.com (Postfix) with ESMTPS id E82F91402E0; Mon, 13 Jan 2025 12:40:49 +0800 (CST) Received: from kwepemd500012.china.huawei.com (7.221.188.25) by kwepemd200011.china.huawei.com (7.221.188.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Mon, 13 Jan 2025 12:40:49 +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, 13 Jan 2025 12:40:49 +0800 From: lizetao To: Pavel Begunkov , Bui Quang Minh , "linux-kernel@vger.kernel.org" CC: Jens Axboe , "io-uring@vger.kernel.org" , "syzbot+3c750be01dab672c513d@syzkaller.appspotmail.com" Subject: RE: [PATCH] io_uring: simplify the SQPOLL thread check when cancelling requests Thread-Topic: [PATCH] io_uring: simplify the SQPOLL thread check when cancelling requests Thread-Index: AQHbZQBAfPWaG4hxx06y9utYvVroALMTRYCQ//+EZoCAAFRSgIABAbTw Date: Mon, 13 Jan 2025 04:40:49 +0000 Message-ID: <7a3696740cd546cd95cd821a7a7be03c@huawei.com> References: <20250112143358.49671-1-minhquangbui99@gmail.com> <3cab5ad8-3089-46c7-868e-38bd3c250b26@gmail.com> <75e12d85-9c2e-4b06-99d1-bc29c5422b69@gmail.com> In-Reply-To: <75e12d85-9c2e-4b06-99d1-bc29c5422b69@gmail.com> 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 SGksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4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