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=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 D58EAC43331 for ; Tue, 12 Nov 2019 07:37:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B5A22084F for ; Tue, 12 Nov 2019 07:37:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=eoitek.partner.onmschina.cn header.i=@eoitek.partner.onmschina.cn header.b="r2R37BMO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725781AbfKLHhf (ORCPT ); Tue, 12 Nov 2019 02:37:35 -0500 Received: from mail-shaon0136.outbound.protection.partner.outlook.cn ([42.159.164.136]:64140 "EHLO cn01-SHA-obe.outbound.protection.partner.outlook.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725283AbfKLHhe (ORCPT ); Tue, 12 Nov 2019 02:37:34 -0500 X-Greylist: delayed 1192 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 Nov 2019 02:37:31 EST ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O/s/gddEfMP0S3Bpw6VXjwPtxrg8UbGDUP5ySG4YB+GnCQ2erDSmpN9o+QcOOoQlJw09tRS+JnWVNy07514NVFWnBgh+twRzowmgBLIwOASafOXot3PxIRpvFBXWG3HVFI8gCO0b+U803FyDaiEIzOZc2Xd8UzclLM0ceFgdS4SCBXtsy85NTZ5+Gbgbl2Cs7clgNu1Q/5MIm1HDBJHaInXzG9AkF/1K+q/JMphrz+ASJx4HOBZJ8EJXPko2S4dITUZt5+4yGfIlsQhcEfi4Rf2QuaguNQ2J7E+ZMqgFyjSwWTaFpC/BNkG2gsZLyyntcUWlaZLRS2Hvsvft1KSmPw== 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=Iu2rXMn2elHoQQ4czHoqPGMXU66RsS16DDHzl0Xtgns=; b=RGfWr9soj36/9bQ/GuTl3bSmiIsyVuJtCbBG1Cos0WC1GE6Mnux6uMvQBNvE2gP6HzkHNHVWMEneXsNvXTS6jEuiad1BJtne1PWUY7hNEJl0ZeZheoJpeNXqqHf8Enat48EUoME7gLoQp4dxWtcdZdilcUAWWjrQOPvFkouanPQELkt8Sa0NVq3xfhcz6HHoMTXsTijGhdEkq6ODc4yUuYWJjCM5Gzy+ajlqXSyqsjVKJ1NLovSIicejKkcZitG4iVE0tGpa70VARGkIKeAQPcTl7A0pGkqiK6QUPsdudOksCWe4J7um2lcgvWtwU2at8nfIF0egHxLPRCVeu/6wug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eoitek.com; dmarc=pass action=none header.from=eoitek.com; dkim=pass header.d=eoitek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eoitek.partner.onmschina.cn; s=selector1-eoitek-partner-onmschina-cn; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iu2rXMn2elHoQQ4czHoqPGMXU66RsS16DDHzl0Xtgns=; b=r2R37BMOxS5MnkvR/HMJg/NxGcxw58SzbJz7f36RryThOBAVmNdgxaeghntv2ngbMbHscFyqu5q/HWXXGOX+cjfubH0eY+KUlsK6DSEdASH1LBJh9ok0mouHdoBpPrpJ/qk6og48v79yG3d9dxcBeW0FHEo4K0FCP6OoINaM44E= Received: from SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn (10.43.108.138) by SH0PR01MB0635.CHNPR01.prod.partner.outlook.cn (10.43.108.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.24; Tue, 12 Nov 2019 07:17:33 +0000 Received: from SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn ([10.43.108.138]) by SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn ([10.43.108.138]) with mapi id 15.20.2430.023; Tue, 12 Nov 2019 07:17:33 +0000 From: =?utf-8?B?Q2FydGVyIExpIOadjumAmua0sg==?= To: Jens Axboe , "io-uring@vger.kernel.org" Subject: Re: [PATCH] io_uring: make timeout sequence == 0 mean no sequence Thread-Topic: [PATCH] io_uring: make timeout sequence == 0 mean no sequence Thread-Index: AQHVmSO+MZCjLoMdVEeE8KEIwxu57KeHplQA Date: Tue, 12 Nov 2019 07:17:33 +0000 Message-ID: <459B9C70-755F-48AD-BF2D-9758A6B83768@eoitek.com> References: <440e683b-8ddc-ebf8-7c52-10294b79a233@kernel.dk> In-Reply-To: <440e683b-8ddc-ebf8-7c52-10294b79a233@kernel.dk> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=carter.li@eoitek.com; x-originating-ip: [106.120.83.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03f7b5d4-3cdf-40ee-0ba3-08d767406307 X-MS-TrafficTypeDiagnostic: SH0PR01MB0635:|SH0PR01MB0635:|SH0PR01MB0635:|SH0PR01MB0635:|SH0PR01MB0635: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 021975AE46 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(376002)(39830400003)(366004)(396003)(189003)(199004)(329002)(328002)(71190400001)(71200400001)(85182001)(36756003)(2501003)(446003)(11346002)(2616005)(95416001)(66066001)(486006)(66946007)(66446008)(63696004)(64756008)(476003)(5660300002)(8936002)(110136005)(8676002)(14454004)(76176011)(33656002)(6116002)(66476007)(66556008)(81156014)(6246003)(81166006)(76116006)(316002)(2906002)(508600001)(3846002)(7736002)(305945005)(86362001)(59450400001)(229853002)(186003)(26005)(102836004);DIR:OUT;SFP:1102;SCL:1;SRVR:SH0PR01MB0635;H:SH0PR01MB0491.CHNPR01.prod.partner.outlook.cn;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: eoitek.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qwnzp0cKTPHlz+jYcXdORESXo9BBZp7H6GKV42Ln1tiMfbM73LoAV+SKzo59j7HSwxRqe6DbXKl8qiYQiD6gCak28NdEGoDS8VjO1Wrggq/ahpCgQ0xne+mtXXNPeH4eoPEqli3j0xalQ/I9BJKWXMnnNo00GDbkt4j5lnFD4ZDFeIuX3th1ef/Q/zhtBn9Ff4KyjPjJCy3V0oVpIe0xnbMiH2FO1ii7Eu9xRFnE91yn6RMUyz6+18q5kqnXx5rISbZcBK/j2IijTTCXiDoM4LTsu3WSxbyxjYC+y4izfuojFf1w7HFcW82dAsg7JAi4TitZIa5E9ue3ue6vLUR54dqgPNcJVh5A1Bkl0/J2rdkJIEWuvHwJN619JhDRKKA7LbUu9zzDJYfTpd7yIqLb+apoV4O9qlGYdwFZfV252aBIjh61TWAoVpgTkTc7bx2O x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <695FED6CEDDF73429417BA699C6FA087@CHNPR01.prod.partner.outlook.cn> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 03f7b5d4-3cdf-40ee-0ba3-08d767406307 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2019 07:17:33.1939 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e3e4d1ca-338b-4a22-bdef-50f88bbc88d8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PONzBayVBLr2LwUH2CJwfx7/QsmIKsD+wUnMl5/ds7St2HRxvzBfRl+LOWj5CrSqUoJ+6brqG6Oc3vQLbZxM3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SH0PR01MB0635 X-OriginatorOrg: eoitek.com Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org R3JlYXQgcGF0Y2ghIGlvX3VyaW5nIGlzIGJlY29taW5nIG1vcmUgYW5kIG1vcmUgdXNlciBmcmll bmRseS4NCg0KUmV2aWV3ZWQtYnk6IOadjumAmua0siA8Y2FydGVyLmxpQGVvaXRlay5jb20+DQoN Ci0tDQpDYXJ0ZXIsDQoNCu+7v+WcqCAyMDE5LzExLzEyIOS4i+WNiDI6MzjvvIzigJxKZW5zIEF4 Ym9l4oCdPGF4Ym9lQGtlcm5lbC5kaz4g5YaZ5YWlOg0KDQogICAgQ3VycmVudGx5IHdlIG1ha2Ug c2VxdWVuY2UgPT0gMCBiZSB0aGUgc2FtZSBhcyBzZXF1ZW5jZSA9PSAxLCBidXQgdGhhdCdzDQog ICAgbm90IHN1cGVyIHVzZWZ1bCBpZiB0aGUgaW50ZW50IGlzIHJlYWxseSB0byBoYXZlIGEgdGlt ZW91dCB0aGF0J3MganVzdA0KICAgIGEgcHVyZSB0aW1lb3V0Lg0KICAgIA0KICAgIElmIHRoZSB1 c2VyIHBhc3NlcyBpbiBzcWUtPm9mZiA9PSAwLCB0aGVuIGRvbid0IGFwcGx5IGFueSBzZXF1ZW5j ZSBsb2dpYw0KICAgIHRvIHRoZSByZXF1ZXN0LCBsZXQgaXQgcHVyZWx5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