Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2818420ybc; Mon, 18 Nov 2019 05:14:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxuY0a92U30m04R/QtTsdHdxM8k3E0XAX+CA4fpCdNPn16StxbRGY77z8PrjKVGK0pqEbjp X-Received: by 2002:a17:906:b74c:: with SMTP id fx12mr25540667ejb.324.1574082866747; Mon, 18 Nov 2019 05:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574082866; cv=none; d=google.com; s=arc-20160816; b=wLxfMGH6K3+wgF//z3PBh3FU8OKSv+iWF0QQoNTmQ3SRoYUU+remHFkFfa/XbNwtaT zxbgxmW7vKXILX+6ALlSgAlyKEhVlv1OtMY33ttVhj9QxE5VNEXAqIIdzf1+6hUyNkIR QpW0dXoQhXtuXtIAAMg2uvXXP8hlV1h3Wq74hfmMYHoAPgcFEDOkBjC1Vqh2pbYA4KMF yxb0ytxsvioO/qczwl+EZWX/IBTmnZPt2DMQP4mXY69oWFmpndFgmjHFhNAvcA5Ia0ij MRLwuebA+Jtst+l1BF0BM3FD44S4ZYwvp6nrBV1Q84fMLx2v37BEht6sVd/UUY72e9BP 32sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=eQ5BNG0qwMUXSOxIu9i4yindySL+nL7/EZXpj2SWRKo=; b=i59nQ0vzBxH4aA3aL+XIAT4/colTFmc5bLoUb+ddRUC7PABBcLPyCdk2MQf03Iq2Yp mdcY7M+Vp1eDdOfzmLMyITWbYazytkHHwjllqqSU6NsjEWmgk8AR+Sja4qWaLk3vwFDj GorkGhR9RE+Tu74YiSHQ6Lk1Ze0XimnubNuBrGYkF2wm01uD6bqpXE3pDYKLZ4ow9jCQ CN6D+JbaoYhuIF5ynRVOWvhb65poU6ekJrbyaz4I9puUICGkznOBQ7jSvz2oNCZ5Iylm emg1CwvoVgDfdhuzqTZ8hACzIRQLKadODbxA4QWVW884GG+iEgJKdjIqcUg9JcdQo1Re 9UVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="z/L6folj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si10458084ejr.129.2019.11.18.05.14.02; Mon, 18 Nov 2019 05:14:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="z/L6folj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbfKRNMm (ORCPT + 99 others); Mon, 18 Nov 2019 08:12:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:46792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbfKRNMm (ORCPT ); Mon, 18 Nov 2019 08:12:42 -0500 Received: from tleilax.poochiereds.net (68-20-15-154.lightspeed.rlghnc.sbcglobal.net [68.20.15.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F9C52071C; Mon, 18 Nov 2019 13:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574082761; bh=WMe0I3EG4ps7xAe3DkVvXD3fbqLLGFm0wowZjHciiQY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=z/L6foljQByrauIjOI06JjV8sgoV4yE3qF1V9DNieqEgkqN2ps64CE18YqzmwQv4i z2mVqVGNQpcTGHmH5ckJdaAtPTEQeIuWWKWG31lyolu1lbZ5YeSb180Ee89ofrta0r xBOPuP6/qICXsw0aMUdRPj+r3qCI7L7Hq2m9bZ4w= Message-ID: <3dc2df0ba5776fb0f7aaac3a099a938823ed0ebf.camel@kernel.org> Subject: Re: [RFC PATCH v3] ceph: add new obj copy OSD Op From: Jeff Layton To: Luis Henriques , Sage Weil , Ilya Dryomov , "Yan, Zheng" , Gregory Farnum Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 18 Nov 2019 08:12:39 -0500 In-Reply-To: <20191118120935.7013-1-lhenriques@suse.com> References: <20191118120935.7013-1-lhenriques@suse.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1 (3.34.1-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-11-18 at 12:09 +0000, Luis Henriques wrote: > Hi, > > Before going ahead with a pull-request for ceph I would like to make sure > we're all on the same page regarding the final fix for this problem. > Thus, following this email, I'm sending 2 patches: one for ceph OSDs and > the another for the kernel client. > > * osd: add new 'copy-from-notrunc' operation > This patch shall be applied to ceph master after reverting commit > ba152435fd85 ("osd: add flag to prevent truncate_seq copy in copy-from > operation"). It adds a new operation that will be exactly the same as > the original 'copy-from' operation, but with the extra 2 parameters > (truncate_{seq,size}) > > * ceph: switch copy_file_range to 'copy-from-notrunc' operation > This will make the kernel client use the new OSD op in > copy_file_range. One extra thing that could probably be added is > changing the mount options to NOCOPYFROM if the first call to > ceph_osdc_copy_from() fails. > I probably wouldn't change the mount options to be different from what was initially specified. How about just disable copy_file_range internally for that superblock, and then pr_notice a message that says that copy_file_range is being autodisabled. If they mount with '-o nocopyfrom' that will make the warning go away. > Does this look good, or did I missed something from the previous > discussion? > > (One advantage of this approach: the OSD patch can be easily backported!) > Yep, I think this looks like a _much_ simpler approach to the problem. -- Jeff Layton