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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3828AC4363A for ; Fri, 23 Oct 2020 03:55:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AB14121D43 for ; Fri, 23 Oct 2020 03:55:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=windriversystems.onmicrosoft.com header.i=@windriversystems.onmicrosoft.com header.b="eR7DAYDR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S370027AbgJWDzJ (ORCPT ); Thu, 22 Oct 2020 23:55:09 -0400 Received: from mail-eopbgr750050.outbound.protection.outlook.com ([40.107.75.50]:19681 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S370025AbgJWDzJ (ORCPT ); Thu, 22 Oct 2020 23:55:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n2wyWj9aFhoueMes7ivgZFIv8P8iMkmcPI4PlLvVvRnpTJsQrvvwRPCcC670F3ggUf/F+irQElmhvU+45GptXK0YrgdJX8moMBf2Sx6HGYBUJ5cgEsb+u+u8TfC1JNkX21IU6x2YfR4jwEHq1dacTpWeOLtssULEub+cOIyRTeqXmu4qhjxoUu3nLnufNEb7HpcIICWDC7Z048eS9bcq4BNLL9scPRVxdJf2E1RcFrlZOvBWFuMFnX4mdznmTYaGWBdbW1S5sN3k0BKlacHkSG3bgKgbovsuzdbAbJJpHmdbEWMEeprr2r++F5sy1iVFMWgxnciOCpjW4FIdVyOnPQ== 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-SenderADCheck; bh=PuYw/To0vyXP/UFmopsjkmI2ULCwYTQoOGwH5nS6Od4=; b=ePY+VqdXW08pumtwf3TXFi6rE3Pu2vu0CCtqeLU/i3UeGe5xWAeackfRd3HstoxPMCzUnm2ze/EijlYvQKF1rHHLhp2sj9Rjd5h2Un+UElnEP5/X5aq0KC0uMYZvcZAyRraQdBQr1sVCUxHVIX6dLwbI9j0HxGwLuoUvq1qKyy0L7jZ7gAJwm2HE0EZSTH7xOPyRSgV7jcN7quWMDu8T1eop6WK50pt+BYYWVu4efgnBkjLRBLliiXRW17AlV7wREnMFFJuO3YhX3pHPQ2Das7nDlgnjtuzL8UXUCcYMrZ45oWpho2z0pp6D4Ts8wa76ObmcDhiXTmHW4hRe8mV17w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PuYw/To0vyXP/UFmopsjkmI2ULCwYTQoOGwH5nS6Od4=; b=eR7DAYDRLAZwaYh/wlCIkxoEyeBORM+oyQ1TBcNh8b8YlUKMZwlXSGtO8cOYgZCp7dadKCngp3TM4Lti8YB4J9gPS5lsqxKXr6SisTe1M6Q2djso4ncKuOcLf3Og3x3NsSHObZ/3cr15IpjYhgFCxPGNeo6qiWXhHCs3/1C8Htw= Received: from BYAPR11MB2632.namprd11.prod.outlook.com (2603:10b6:a02:c4::17) by SJ0PR11MB4942.namprd11.prod.outlook.com (2603:10b6:a03:2ac::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Fri, 23 Oct 2020 03:55:04 +0000 Received: from BYAPR11MB2632.namprd11.prod.outlook.com ([fe80::80e9:e002:eeff:4d05]) by BYAPR11MB2632.namprd11.prod.outlook.com ([fe80::80e9:e002:eeff:4d05%3]) with mapi id 15.20.3455.030; Fri, 23 Oct 2020 03:55:04 +0000 From: "Zhang, Qiang" To: Jens Axboe CC: "viro@zeniv.linux.org.uk" , "io-uring@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" Subject: =?gb2312?B?u9i4tDogUXVlc3Rpb24gb24gaW8td3E=?= Thread-Topic: Question on io-wq Thread-Index: AQHWqFIIJfBUWm45qk6/o7Xr3klK5qmjqOaAgADl1fA= Date: Fri, 23 Oct 2020 03:55:04 +0000 Message-ID: References: <98c41fba-87fe-b08d-2c8c-da404f91ef31@windriver.com>,<8dd4bc4c-9d8e-fb5a-6931-3e861ad9b4bf@kernel.dk> In-Reply-To: <8dd4bc4c-9d8e-fb5a-6931-3e861ad9b4bf@kernel.dk> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=windriver.com; x-originating-ip: [60.247.85.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8ce81b46-1204-4eae-ed6f-08d877076cc8 x-ms-traffictypediagnostic: SJ0PR11MB4942: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1060; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XNdctyWfhu062euVH25il2W3TKyrqFw48UEsZtBNBwb9w9wu4R+mYYKScD9tumM/xsKAZBHKAAyHFpgupFYiGEQy8O9+QkF7kOmheJp4pqYqs0TOGTaR7nl1h5AndPySZb2Pc2iKH3uzGXbJPnlZPrN2Ms7EFmaOCappZVg+1ovmtLcZQ44Pvv16xrFChY/WBgiu+MBaF0JKAzHCjDrB3lpazSiSslgHgP79U/4fdkPYuvr5/zYSF8vQfo2RvAnQE1LDXAwofL7750gD4i6LYYExoLttFeOit7qP5enEUY2sbxnuU71rgcXvdqYn0yOY x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB2632.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(366004)(136003)(376002)(346002)(396003)(55016002)(71200400001)(86362001)(224303003)(66556008)(66946007)(6916009)(52536014)(66446008)(76116006)(5660300002)(91956017)(83380400001)(66476007)(64756008)(9686003)(7696005)(26005)(54906003)(33656002)(316002)(6506007)(186003)(53546011)(8936002)(4326008)(2906002)(478600001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: FTThlufwHLTIfF5CSQ/MgBpAJR9UumYRfiHVbv7Kjz26DQCDRmIR4/kQdZmhp2N6g5U4lxiLp2BsZKrW6X80tARCw3p7/Z+wXZcdXKJkYUKeD6mIJbZdu3hxmLqjXg16gQ1Js6Ps0VyePDFsLB9Twp/HvDwzA7g35fPuUSyKMSHfF/qkrUHtgkaOakliuXZ/z0NSZ17DfD/1luTfbYe+ZuvhN3DW2KfV8VkiODW2ka0oFOeyH68pN25Hq22fCl5rS25nhptSKyiF49blffag3P9vaqg8jMl8mBH5EHRimW/zErlzR+gXYgrgX72oylJ4zrPEFGxGhHvZ4HAEst92QNtLRjpb17VGJdInNoLW8JUpK2ZUgNwuVdK3u1cFjit3CE8TTK5MOvQ9IdL3Fryc41fdUgJxSqYT8DTfNbnr9m0SX3SdZ07Et2wg1cMaAloVtORy08DBcWYgd6rqBYbFwTSnOMy/4GZLs5U0NAhWvZc5QG8aKLPzqOw7dQLu1vlZZWxrKt4YXNHk+6jjAcoJ98t337MVdGMlLRu/H9FdA2FRBSW58A4z43VHW4fs8Quj5YSV71ODJtwnt9YhnyNHkmXw8KRJfnFrBQZRTXcQjZwPG9kFAVxynJVC5AihImx1oZhi2V0larzBuULJgFdxfQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2632.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ce81b46-1204-4eae-ed6f-08d877076cc8 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2020 03:55:04.5369 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bdpoI1Il0gIp2GTQMMxZ7SCSvsUNOg6eHUl/pOEhWJyQLLmo7H5jbWIQtTi+9y/+xZ+NQOz+kGkSwF3HEyjzA/P9K1vFmjXGlPlolKvcWDI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4942 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCreivP7IyzogSmVucyBB eGJvZSA8YXhib2VAa2VybmVsLmRrPgq3osvNyrG85DogMjAyMMTqMTDUwjIyyNUgMjI6MDgKytW8 /sjLOiBaaGFuZywgUWlhbmcKs63LzTogdmlyb0B6ZW5pdi5saW51eC5vcmcudWs7IGlvLXVyaW5n QHZnZXIua2VybmVsLm9yZzsgbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgbGludXgtZnNk ZXZ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j4rCj4r c3RhdGljIF9faW5pdCBpbnQgaW9fd3FfaW5pdCh2b2lkKQo+K3sKPisgICAgICAgaW50IHJldDsK PisKPisgICAgICAgcmV0ID0gY3B1aHBfc2V0dXBfc3RhdGVfbXVsdGkoQ1BVSFBfQVBfT05MSU5F X0RZTiwgPiJpby0+d3Evb25saW5lIiwKPisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBpb193cV9jcHVfb25saW5lLCBOVUxMKTsKPisgICAgICAgaWYgKHJldCA8IDApCj4r ICAgICAgICAgICAgICAgcmV0dXJuIHJldDsKPisgICAgICAgaW9fd3Ffb25saW5lID0gcmV0Owo+ KyAgICAgICByZXR1cm4gMDsKPit9Cj4rc3Vic3lzX2luaXRjYWxsKGlvX3dxX2luaXQpOwo+Cj4t LQo+SmVucyBBeGJvZQoK