Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp343628ybs; Sun, 24 May 2020 07:08:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIFoWtDvJ5z+8Z3LjilqCuSwVvN/BzQHvFMf1jDne7IsljpaHkA1npPzjpfxnMhhYFemTZ X-Received: by 2002:aa7:d90b:: with SMTP id a11mr11218133edr.159.1590329288084; Sun, 24 May 2020 07:08:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590329288; cv=pass; d=google.com; s=arc-20160816; b=Qcmhaht6KOcONrB/isMJuKQh9rpYKnJ8Ot97SvsPImzExtv0ItoqNHKn720N8ZgU6u OVfg3rRY9VcC4+yeCeqD7hkGOF+vadfQs4bPHurdxjMbZ3MZXQ2ph/DJ8RpZADPYXNsw s2q9zkLa/t8O622TIBS0+6ZTNsZVmWqHuEKXoMXwizBYULEmlRtKruJW7gNuDDJ1x8+U WX+fGXfyGvjacj6148HCPPfMmfaDeXd+ZRZlV4eO88+YsaGnh8l/gYuNfJNHi+4ZAFI3 TnsdxECppWvQTbSjaDA1Pj2Hoik0+uMrSEEEayeyw4AxO8dCMoGI9D+LkqRvg1wGAoTQ cLKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=qDdupJoyjbIOg8U4UFqvWafTJwAWxJcGp/fD51v9YDc=; b=y4eGIllq6jzJpr5WEbDk+tndHSgsMBjuQpytQsQyNl3syHQZt2PEIwNUh0egndCt+L IKJ29pW7y4h4EaY2miKeRrkjepN8g/PAzr/xI52YUf4CaJrkZI4NNMax6ZGXXguOtVPZ ebzHR5GjB50VuzlVJempou4PLJXcWUyVc6dGrbkCx3gN0Ly/dklleF1QvJRTW0SmY6u6 XmuXWkQg6DXsXMvI9WT2y8YkBvYB+PecY3L46/upOa+UG/aes0qQ1eHKFWyd67+h3zqz e/HdK0oQmr/f0zfGVSvTyDVHKDntsDtlC82VQ5z7pHwcsERJlOgbHvrAhcU4PVskaTNw 2Vhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=A9mRWvAF; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm15si7720959ejc.728.2020.05.24.07.07.44; Sun, 24 May 2020 07:08:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=A9mRWvAF; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729537AbgEXOFh (ORCPT + 99 others); Sun, 24 May 2020 10:05:37 -0400 Received: from mail-bn8nam12on2101.outbound.protection.outlook.com ([40.107.237.101]:42304 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728875AbgEXOFg (ORCPT ); Sun, 24 May 2020 10:05:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofrm+h3lYEE9tpgs960lOvLpNMKJPI7uf3XSnyXgXbeC5Bh/evuQ5kbABjtpGL3LIWYtc95IgxE2nAWKZ5+/kNjFTzF6sBNMYqXkHhNzAWiEtazdk9yXkI5JkLqJu9IWn6XpdWzKpg3bIei2Vfe8yeJnWPv5+iZlvdl8GS11x5idyJaBwsyFxcXqHaLEmGjvDBniwkkDGFLwnzWeuARux+7wbAFcUwcxHgdOpuSUG87cHM3SDlv4GPjlhtSgjSfHba+DZ865mqvia3aEwhoRHyDW0ZKM35MqrjtqZd84RhkuLs1Bor9UYdD3A73cRzO4G8IAVJ+gC7U0is+8MnQlmg== 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=qDdupJoyjbIOg8U4UFqvWafTJwAWxJcGp/fD51v9YDc=; b=Uk/akTgwf2Aa9jPZxBcg60/oI8n8yqydXydAnk2OeVvFTP0UuNPHrQRZmZKkvFOwuhN+Qt02WbJnXjWErXfotDxHjoU86yIEni7EuUT4qN1a8kqo0BuMupQACeKGKJdg0fZF8h9Mju8hiOQXGP+zrn6pygG+p09h89RMg5QPlc6nNNMyO39/N1dEgBusQZ4wH02fa4FhUaE10kwtQAyVVl+ZKYxSR6UEyX1zzszCX6RFZTJCt4TQBvlvs/AP7aDj/46PSBXy9eWqi+tu4UCUi+AchrQqiLRg9xEp1gGNm8mjRLNKHKVRTJHUIaiaNs4paylhg5Xm4d78Y5yDatVlbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qDdupJoyjbIOg8U4UFqvWafTJwAWxJcGp/fD51v9YDc=; b=A9mRWvAF3MBLCYmGsFS3QWBaJq+scCc3r5LXMaHUKJh5RgAB7EzJ9ljFZ17h2QM6KRtw/qTXIst+Mqewma2bulxvHc+GLuXYGj13TG9u9R8pKz+7wvuFBWJ0RkCGCfLmqe8hjNXQLf0sR8uH07Ua/EIw7yL9RrotejAsf26r/qA= Received: from CH2PR13MB3398.namprd13.prod.outlook.com (2603:10b6:610:2a::33) by CH2PR13MB3448.namprd13.prod.outlook.com (2603:10b6:610:28::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.9; Sun, 24 May 2020 14:05:32 +0000 Received: from CH2PR13MB3398.namprd13.prod.outlook.com ([fe80::49f6:ce9b:9803:2493]) by CH2PR13MB3398.namprd13.prod.outlook.com ([fe80::49f6:ce9b:9803:2493%6]) with mapi id 15.20.3045.009; Sun, 24 May 2020 14:05:31 +0000 From: Trond Myklebust To: "axboe@kernel.dk" , "io-uring@vger.kernel.org" CC: "linux-mm@kvack.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 05/12] mm: support async buffered reads in generic_file_buffered_read() Thread-Topic: [PATCH 05/12] mm: support async buffered reads in generic_file_buffered_read() Thread-Index: AQHWMTQyNgEk/N+TVkeE2BGKfkqi2qi3RlkA Date: Sun, 24 May 2020 14:05:31 +0000 Message-ID: <264614fc4fa08df2b0899da1cd38bb07150cd7f3.camel@hammerspace.com> References: <20200523185755.8494-1-axboe@kernel.dk> <20200523185755.8494-6-axboe@kernel.dk> In-Reply-To: <20200523185755.8494-6-axboe@kernel.dk> Accept-Language: en-US, en-GB Content-Language: en-US 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=hammerspace.com; x-originating-ip: [68.36.133.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 224fc63b-e9ed-4619-6acf-08d7ffeb858e x-ms-traffictypediagnostic: CH2PR13MB3448: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0413C9F1ED x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MnAx/qT9JUCNF8HxvqOWDhZXoIPsVQffF7OCxD5SFRne1WlH/Y1p7KjIk0/+KsKZLycIg/potbNMoe42E4eo/WcTBETbRjk5NFa1gJ8rglj0PSkqe+XlIqDJpt6qm/4wYUl2WeVP4CQh3hYsIAxP5ZjFKjLdTwWawS1BSVL6jNN63SYd9JtJ6Wxv2+dMS2lKi337DBLLje5wmErREX7TRKQ4ODHyh0Ha73LYSs6tktHrrRzQVWQE7DRmN6GcYftxoXWEPDN9f6GRW5FlX7BlidGRzrbC29poCdOwswMYztkGkP1aB/Rs3Ycr6GlyWoJgq89ogftOa8HqV/SFOi0Nkia7OWXD+8e/usN7yUCJoIfGHWz8TkA3EE4ZF3E00Q3B x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR13MB3398.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(346002)(39830400003)(396003)(376002)(136003)(366004)(6486002)(110136005)(36756003)(478600001)(26005)(2616005)(54906003)(66556008)(8936002)(2906002)(66476007)(5660300002)(86362001)(64756008)(66446008)(71200400001)(186003)(66946007)(6506007)(4326008)(8676002)(6512007)(76116006)(316002)(41533002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: JlDrNoCp3zhjun7JmKnhtn6LICBQMiQlpw0G6bSzFPiit1gEkF01UJtBuoOExsu+yj/OMgxyutz8NnFpzE9zhwlk/ACpmibaxdWdwFNj9aydfieO1fqReCgUgxViC+F7bZ4pHv+m70gOj3X0Djazc3UUySDNLPtJ8QY40as4hP6Spca2fnYlHfCLmCVX8vMXG5qCe5o/Dh7ZzaS0ajCgZBhZldtGiCxarYmqxfqeF5sfHS01clnH/+rcOqnimiLzES6A17iqwklPOZ86NyrPO0V/5k0l06pFzR7NgPPs7dFG013kWcAwiXhdD+tRloIosPNJBn+RyF6xBGyHu2DshRx02okE2jfpYsc4e2Vhud7PIfRB4iEzQpnoO0Zh+dTASf8Q+c/A4iJt0ptLUaFw8e9n1XVmrjPNMCr89NLYx618lZp2/i8DICbfKAjmShxMNa3sV4zGyvHHeqlezhMkF7YS98BMS5yR+Jm2/ijib44= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <85C147503CB437449457176356FB74F5@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: 224fc63b-e9ed-4619-6acf-08d7ffeb858e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2020 14:05:31.7586 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: T+eSaCiPA9CNVMETEq7h7y5ruLM30C4l8tlfzWHAezGaYYje+FfLgiPR6sfkz3RwQnV6TC1s8R6rTCNUU40P3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3448 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIwLTA1LTIzIGF0IDEyOjU3IC0wNjAwLCBKZW5zIEF4Ym9lIHdyb3RlOg0KPiBV c2UgdGhlIGFzeW5jIHBhZ2UgbG9ja2luZyBpbmZyYXN0cnVjdHVyZSwgaWYgSU9DQl9XQUlUUSBp cyBzZXQgaW4NCj4gdGhlDQo+IHBhc3NlZCBpbiBpb2NiLiBUaGUgY2FsbGVyIG11c3QgZXhwZWN0 IGFuIC1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