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 D96E9C433F5 for ; Tue, 24 May 2022 02:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233386AbiEXCme (ORCPT ); Mon, 23 May 2022 22:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232542AbiEXCmd (ORCPT ); Mon, 23 May 2022 22:42:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDE0D3917F for ; Mon, 23 May 2022 19:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653360150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3xLfsHx+BKpExcWq85oAqX8rbkhImP1F58c/CnSyz9g=; b=Hl2gsxWboZzqffBa8wD6Ixlw0kD2Q8KkV3KP/4qGblxDicGdy1KRodKJ+IYS1bzKAtG7id fi3tMUwahTo+xV2ubqTocOCv2nC/KzxVYNbp7t3c3pjWkI82t1uk/Q9TxXai8mnTfehzLE R/DTN+Z7hQnv2gJ5xjkBMMcLUfnThB4= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-279-Pokn53lhMY-h1tB9-D05Sw-1; Mon, 23 May 2022 22:42:29 -0400 X-MC-Unique: Pokn53lhMY-h1tB9-D05Sw-1 Received: by mail-pj1-f72.google.com with SMTP id 92-20020a17090a09e500b001d917022847so9095275pjo.1 for ; Mon, 23 May 2022 19:42:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=3xLfsHx+BKpExcWq85oAqX8rbkhImP1F58c/CnSyz9g=; b=lpZ01HUTWcK6UgwU3eWCxLEth5u9tnKtU/A6MpfwBSCwUE+iJOzoGa2c+qJPXpQO5/ rvbwtF33CUQfRjOMPgZFcvMxFRjwJTvqSnpE4X7pjBWNYHSyviuevd1thmEatmJj6Fol FVNeSKTFfPLY5oJEqclODtM3NDrzboXJEu9ZcimwMnF08mQC2WKwgDcxXnr/iQ5ZYuq4 9yhypVyEwYCgpB8OlfXY5xBdBWTN1KxT5vaMdJV/J80x5v8f4WEjHZFpMSo3ajucig/p thKs7Fu+SZMNC2BJchcxvHrZFi7NQ6bFWjK1IJmQ4GLEmo8d3fO1W9T5zvAXsrccnl/8 rpzA== X-Gm-Message-State: AOAM532vLr6md17DLH6iud7OL5WaQya3GV0+dkuLBWg07fks5VQv4RaA uxVqM72oz4sHQS+U7hlfKf563wD7eq95iGU+2Wts/i088CJGNCYsPnCGBwgLuFQ3h4Y/G4AJqNf LeFiNdFu90+WWxUVqmUroyQ== X-Received: by 2002:a17:902:d2c3:b0:161:ab47:8afe with SMTP id n3-20020a170902d2c300b00161ab478afemr24931977plc.8.1653360147748; Mon, 23 May 2022 19:42:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA+gODlV7WWNHWEp0hE4LMnP4mMf0SiHLwgiWTIyJg7uorcVuiwskaeNLeclw6WWCrAXYIgQ== X-Received: by 2002:a17:902:d2c3:b0:161:ab47:8afe with SMTP id n3-20020a170902d2c300b00161ab478afemr24931962plc.8.1653360147525; Mon, 23 May 2022 19:42:27 -0700 (PDT) Received: from [10.72.12.81] ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id bf3-20020a170902b90300b001624965d83bsm19137plb.228.2022.05.23.19.42.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 19:42:26 -0700 (PDT) Subject: Re: [PATCH 0/4] ceph: convert to netfs_direct_read_iter for DIO reads To: Jeff Layton , dhowells@redhat.com Cc: linux-fsdevel@vger.kernel.org, ceph-devel@vger.kernel.org, idryomov@gmail.com References: <20220518151111.79735-1-jlayton@kernel.org> From: Xiubo Li Message-ID: Date: Tue, 24 May 2022 10:42:22 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220518151111.79735-1-jlayton@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org On 5/18/22 11:11 PM, Jeff Layton wrote: > This patch series is based on top of David Howells' netfs-lib branch. > > I previously sent an RFC set for this back in early April, but David has > revised his netfs-lib branch since then. This converts ceph to use the > new DIO read helper netfs_direct_read_iter instead of using our own > routine. > > With this change we ought to be able to rip out a large swath of > ceph_direct_read_write, but I've decided to wait on that until the write > helpers are in place and we can just remove that function wholesale. > > David, do you mind carrying these patches in your tree? Given that they > depend on your netfs-lib branch, it's probably simpler to do it that way > rather than have us base the ceph-client master branch on yours. If > conflicts crop up, we can revisit that approach though. > > David Howells (1): > ceph: Use the provided iterator in ceph_netfs_issue_op() > > Jeff Layton (3): > netfs: fix sense of DIO test on short read > ceph: enhance dout messages in issue_read codepaths > ceph: switch to netfs_direct_read_iter > > fs/ceph/addr.c | 55 +++++++++++++++++++++++++++++++++----------------- > fs/ceph/file.c | 3 +-- > fs/netfs/io.c | 2 +- > 3 files changed, 38 insertions(+), 22 deletions(-) > This series LGTM. Reviewed-by: Xiubo Li