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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 357BBC433EF for ; Thu, 24 Mar 2022 21:09:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353025AbiCXVK4 (ORCPT ); Thu, 24 Mar 2022 17:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353945AbiCXVKx (ORCPT ); Thu, 24 Mar 2022 17:10:53 -0400 Received: from SJSMAIL01.us.kioxia.com (usmailhost21.kioxia.com [12.0.68.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A0076281; Thu, 24 Mar 2022 14:09:20 -0700 (PDT) Received: from SJSMAIL01.us.kioxia.com (10.90.133.90) by SJSMAIL01.us.kioxia.com (10.90.133.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 24 Mar 2022 14:09:18 -0700 Received: from SJSMAIL01.us.kioxia.com ([fe80::b962:3005:acea:aa09]) by SJSMAIL01.us.kioxia.com ([fe80::b962:3005:acea:aa09%5]) with mapi id 15.01.2176.014; Thu, 24 Mar 2022 14:09:18 -0700 From: Clay Mayers To: Kanchan Joshi , "axboe@kernel.dk" , "hch@lst.de" , "kbusch@kernel.org" , "asml.silence@gmail.com" CC: "io-uring@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-block@vger.kernel.org" , "sbates@raithlin.com" , "logang@deltatee.com" , "pankydev8@gmail.com" , "javier@javigon.com" , "mcgrof@kernel.org" , "a.manzanares@samsung.com" , "joshiiitr@gmail.com" , "anuj20.g@samsung.com" Subject: RE: [PATCH 17/17] nvme: enable non-inline passthru commands Thread-Topic: [PATCH 17/17] nvme: enable non-inline passthru commands Thread-Index: AQHYMwoHCN0mZHqKz0OTQ9/5LjtdfKzOvDUg Date: Thu, 24 Mar 2022 21:09:18 +0000 Message-ID: <6a1cf782310d481aa5ef2fc172f55826@kioxia.com> References: <20220308152105.309618-1-joshi.k@samsung.com> <20220308152105.309618-18-joshi.k@samsung.com> In-Reply-To: <20220308152105.309618-18-joshi.k@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.93.77.13] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org PiBGcm9tOiBLYW5jaGFuIEpvc2hpDQo+IFNlbnQ6IFR1ZXNkYXksIE1hcmNoIDgsIDIwMjIgNzoy MSBBTQ0KPiBUbzogYXhib2VAa2VybmVsLmRrOyBoY2hAbHN0LmRlOyBrYnVzY2hAa2VybmVsLm9y ZzsNCj4gYXNtbC5zaWxlbmNlQGdtYWlsLmNvbQ0KPiBDYzogaW8tdXJpbmdAdmdlci5rZXJuZWwu b3JnOyBsaW51eC1udm1lQGxpc3RzLmluZnJhZGVhZC5vcmc7IGxpbnV4LQ0KPiBibG9ja0B2Z2Vy Lmtlcm5lbC5vcmc7IHNiYXRlc0ByYWl0aGxpbi5jb207IGxvZ2FuZ0BkZWx0YXRlZS5jb207DQo+ IHBhbmt5ZGV2OEBnbWFpbC5jb207IGphdmllckBqYXZpZ29uLmNvbTsgbWNncm9mQGtlcm5lbC5v cmc7DQo+IGEubWFuemFuYXJlc0BzYW1zdW5nLmNvbTsgam9zaGlpaXRyQGdtYWlsLmNvbTsgYW51 ajIwLmdAc2Ftc3VuZy5jb20NCj4gU3ViamVjdDogW1BBVENIIDE3LzE3XSBudm1lOiBlbmFibGUg bm9uLWlubGluZSBwYXNzdGhydSBjb21tYW5kcw0KPiANCj4gRn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