Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp367642ybc; Tue, 12 Nov 2019 02:45:52 -0800 (PST) X-Google-Smtp-Source: APXvYqx+Lmp6dl7lNky5HWk2eFZ7PEiCQLvmEoZK2PC56cJhoVmYaADN8YGVXMnfKCMYImgXaMn2 X-Received: by 2002:a17:906:d9db:: with SMTP id qk27mr12429278ejb.309.1573555552202; Tue, 12 Nov 2019 02:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573555552; cv=none; d=google.com; s=arc-20160816; b=DDIBJfr8BOt+lFXBdsQ9MDpcN3d2yVc6HG1733fDJfnsG1sUDiIjXekQCo/4F9En9t yXGSj4daCZgTjbhX8KJTDNSd6zGIYzdTIMpmwiyvfkD7dsQlWB3rqdaRL+VCLuc6rvf/ hqYgTd5TpSL13y8YSFlv6TaNtCoG1S1BjLclctLud/3KZt55acZEfyoPNsiQNJ3Anmni Js67RZAIxkY8rBXko73INBVUACFdFVgvsHh4sFtO5gnt5xjsas75nQw71N3I2RaF5sM9 9o1twavRhHQrPib4Hybx/UwGhRaRkK4vx2EZjXsxXMCEj9xfeEcm0StZVPaEu+OmT4Tt VOKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Bcdz94WCmPyDH/hUaNdu5LTR6Lfw7SSfOxHStJFrB7I=; b=xFNxb37kQ+7u1FZP/JZRsmkCWyC0AfrDhTZ/143vuxTBifYJOkcCSC0wihZcvynr0S 0GcXo9L4HOY6dOIrEvPMYvhW6KQBPRpf45/Gv+xeabTHXcPzHm4sJK1rStVBEj8iXlcT wWd8l3W6YPYQLaO2kHKzYvSw0STcuZ/cT8Og/1OUiGV5i6V4h2I2N+MD6VUaByOovOG0 MTzjy7IHS1tzOHvC0YNd1Od8CKDSfTancahsUzIlRP407g0SIuUW0jWED8D1JEIUK2Bo KtzX/2LdziDPRTK67jH4spMc68M0EsOUPfiP9oehg/78a/D6aS7tAo6ylQDXvTo6uOlV nb5g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si11094012ejb.341.2019.11.12.02.45.28; Tue, 12 Nov 2019 02:45:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbfKLKmT (ORCPT + 99 others); Tue, 12 Nov 2019 05:42:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:47140 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725874AbfKLKmT (ORCPT ); Tue, 12 Nov 2019 05:42:19 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2A272AD22; Tue, 12 Nov 2019 10:42:17 +0000 (UTC) Date: Tue, 12 Nov 2019 10:42:16 +0000 From: Luis Henriques To: Ilya Dryomov Cc: Sage Weil , Jeff Layton , "Yan, Zheng" , Ceph Development , LKML Subject: Re: [RFC PATCH 0/2] ceph: safely use 'copy-from' Op on Octopus OSDs Message-ID: <20191112104216.GA2028@hermes.olymp> References: <20191108141555.31176-1-lhenriques@suse.com> <20191108164758.GA1760@hermes.olymp> <20191108171616.GA2569@hermes.olymp> <20191108173101.GA3300@hermes.olymp> <20191111163036.GA20513@hermes.olymp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 09:51:47PM +0100, Ilya Dryomov wrote: > On Mon, Nov 11, 2019 at 5:30 PM Luis Henriques wrote: > > > > On Fri, Nov 08, 2019 at 05:31:01PM +0000, Luis Henriques wrote: > > > > > > - You'll need to add it for both OSDMap::Incremental and OSDMap > > > > - You'll need to make the encoding condition by updating the block like > > > > the one below from OSDMap::encode() > > > > > > > > uint8_t v = 9; > > > > if (!HAVE_FEATURE(features, SERVER_LUMINOUS)) { > > > > v = 3; > > > > } else if (!HAVE_FEATURE(features, SERVER_MIMIC)) { > > > > v = 6; > > > > } else if (!HAVE_FEATURE(features, SERVER_NAUTILUS)) { > > > > v = 7; > > > > } > > > > > > > > to include a SERVER_OCTOPUS case too. Same goes for Incremental::encode() > > > > > > Awesome, thanks! I'll give it a try, and test it with the appropriate > > > kernel client side changes to use this. > > > > Ok, I've got the patch bellow for the OSD code, which IIRC should do > > exactly what we want: duplicate the require_osd_release in the client > > side. > > > > Now, in order to quickly test this I've started adding flags to the > > CEPH_FEATURES_SUPPORTED_DEFAULT definition. SERVER_MIMIC *seemed* to be > > Ok, but once I've added SERVER_NAUTILUS I've realized that we'll need to > > handle TYPE_MSGR2 address. Which is a _big_ thing. Is anyone already > > looking into adding support for msgr v2 to the kernel client? > > It should be easy enough to hack around it for testing purposes. > > I made some initial steps and hope to be able to dedicate the 5.6 cycle > to it. Yeah, I'll give that a try; adding support for that new address type shouldn't be a big deal. I was just wondering if that wasn't already being handling by any new msgrv2 code under development. Thanks, Ilya. Cheers, -- Lu?s