Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3249030ybc; Thu, 14 Nov 2019 06:21:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyamJVF7plvVApol85ehj0GgBvAEOYA7aZCp3GcuMWAMY5ghC26R7RTPCn3CG0wUg9rJnDN X-Received: by 2002:a17:906:b74c:: with SMTP id fx12mr8194117ejb.324.1573741277812; Thu, 14 Nov 2019 06:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573741277; cv=none; d=google.com; s=arc-20160816; b=XfPyv62tNb2BXm6ehlFP+ZSME1PZvBFPx6aNWMaVM4LkI2MaDfqJvKUpt7nGfO3ZUt 17O95v47Q801fkiCb2rn3Z82hWrsCAP57o52XnXG10cg7FhQjOn19kjp/Z0X/KKnsEml H15l6JRJFgG7MQTAvP/ES712E/8UuvN6qhywpOfI3QiIFqNhjQ9D/+q5DAUeMkgCxfsB bPcXSFZOxMsFhRqqlZrMbRtVTk0PXXoYjxlO+ie82DZG2PAAOSr/Et8wp30q42wmoVap TogF67QoqqLHiULrexLByXB7gi2IYkOOy7Qlie2gVZDagmW9ZnL9RdYs5gYNlc/c5fMz yrLA== 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:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=UgJy6SxLsqvhT1eq7XHYrbyc/XE4ntEQQsPOh9HtOQY=; b=YJYcDE3JoIdlrcJU3vs1TspwZDa0nQNoNhSB/LumKMRjL6/DRHl+ZP6xoHLV7MQ0FN x/40+RIuK+R6Y+kaV/bA5mAKjqPuXBIfiN+zaNBOG6DdMPrD43vugK+JXuVOn05ZnNWT u+OIzRfV2pFwM3lE2sPHp3i6ne/dpuqDuw/zbTMGJvcmGrwWrSIv+0n1CuIxe7HzJgjX 4RLkJdu9IbHSCcbQ4uBkj1ZybM5mU+beSbyFz11VtRK/qup2DVxYRhrtYtyeWsFfHBvX Zpz85ZtYXu/Q7e6wEdyGw+KbaJIwxIhm1vTHb8s1qejdpYhsAa7E4OuWti+L6m6Pnfp2 F55A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GHDbMv47; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si3849380edz.114.2019.11.14.06.20.52; Thu, 14 Nov 2019 06:21:17 -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=@redhat.com header.s=mimecast20190719 header.b=GHDbMv47; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727180AbfKNOSD (ORCPT + 99 others); Thu, 14 Nov 2019 09:18:03 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:25882 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727142AbfKNOSD (ORCPT ); Thu, 14 Nov 2019 09:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573741081; 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=UgJy6SxLsqvhT1eq7XHYrbyc/XE4ntEQQsPOh9HtOQY=; b=GHDbMv47TKjJoQuFxJWKIKi4KEWpcrisAh83iCD1saHjVh6P5ehVYbQYLpSnWSqm02/Dai TFSfNxFS7XANKfKUHXhXPjlMaK5HuKk/7Y0bp21RDGJlH1Fm4y/wtWZ1u7usPWhXIgUVbR 5GyZhkKQVU5+jxD4FOeDc6u/wO5DBjc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-fsoAokqzMtq_APCNNcCn3A-1; Thu, 14 Nov 2019 09:17:58 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8D54ADBCD; Thu, 14 Nov 2019 14:17:57 +0000 (UTC) Received: from ovpn-112-22.phx2.redhat.com (ovpn-112-22.phx2.redhat.com [10.3.112.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 803CB75E51; Thu, 14 Nov 2019 14:17:46 +0000 (UTC) Date: Thu, 14 Nov 2019 14:17:44 +0000 (UTC) From: Sage Weil X-X-Sender: sage@piezo.novalocal To: Ilya Dryomov cc: Jeff Layton , Gregory Farnum , Luis Henriques , "Yan, Zheng" , Ceph Development , LKML Subject: Re: [RFC PATCH v2 0/4] ceph: safely use 'copy-from' Op on Octopus OSDs In-Reply-To: Message-ID: References: <20191114105736.8636-1-lhenriques@suse.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: fsoAokqzMtq_APCNNcCn3A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Nov 2019, Ilya Dryomov wrote: > > > I'm just getting caught up on the discussion here, but why was it > > > decided to do it this way instead of just adding a new OSD > > > "copy-from-no-truncseq" operation? Once you tried it once and an OSD > > > didn't support it, you could just give up on using it any longer? Tha= t > > > seems a lot simpler than trying to monkey with feature bits. > > > > I don't remember the original discussion either, but in retrospect that > > does seem much simpler--especially since hte client is conditioning > > sending this based on the the require_osd_release. It seems like passi= ng > > a flag to the copy-from op would be more reasonable instead of conditio= nal > > feature-based behavior. >=20 > Yeah, I suggested adding require_osd_release to the client portion just > because we are running into it more and more: Objecter relies on it for > RESEND_ON_SPLIT for example. It needs to be accessible so that patches > like that can be carried over to the kernel client without workarounds. >=20 > copy-from in its existing form is another example. AFAIU the problem > is that copy-from op doesn't reject unknown flags. Luis added a flag > in https://github.com/ceph/ceph/pull/25374, but it is simply ignored on > nautilus and older releases, potentially leading to data corruption. >=20 > Adding a new op that would be an alias for CEPH_OSD_OP_COPY_FROM with > CEPH_OSD_COPY_FROM_FLAG_TRUNCATE_SEQ like Jeff is suggesting, or a new > copy-from2 op that would behave just like copy-from, but reject unknown > flags to avoid similar compatibility issues in the future is probably > the best thing we can do from the client perspective. Yeah, I think copy-from2 is the best path. I think that means we should=20 revert what we merged to ceph.git a few weeks back, Luis! Sorry we didn't= =20 put all the pieces together before... sage