Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6679414ybx; Mon, 11 Nov 2019 12:54:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxfFEUHi3f6Luymq6uu6tXyqStMkKRS5cquesupydl2X7UDSIniKatGD12U8YXYGX3tKDU3 X-Received: by 2002:a17:906:d9c4:: with SMTP id qk4mr9663224ejb.214.1573505679525; Mon, 11 Nov 2019 12:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573505679; cv=none; d=google.com; s=arc-20160816; b=LcEvgX6I1CrXm8ZsA1sdI03bJ8ozjbe3ARsKWQKTOp8GyVzUxRW+J8/08QGdAZz194 8m5GFB5IowQQCC8Kyn4hZTyMQSCIU9EWIYwVAyaks3qQaqKjUDx+uz7WL0IY+VjHudnm vB39QS+oM9H5E45x5amaBBNouNN20EeiXFwNFesnSbaWwB7SPBd/tlZ/MJI4JQVG+otL 89TkruBrVbjp6HSiTugmnkhcw7aOwDriGWgvwR6SkKApfx5A9q4NuaoLEwmqipTM0vNl qOft9VvPqyYka9SfrFk4avWr93SoUdhdKtTxHCg5lnbZsoJjRPivGKB251J4NWS+u3ac t1Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=B5hctI9CUIkowY+km5A5wQbF2v/7Tj6av1qpKeqwyrs=; b=VkUjlkbCnWzYcQ+tV+Onr8PDuLFBnpWWeO2P0EHMYedMgw2t95dG05n5shn5Bid6SG NkRwDjzeqShPjPmcoffCVvdobI25L7eCazyNeTWEOmrFaSkcekjorL+FaZt+/RYBa9qz jGzu8mr7ecE3B3f/j70DesqSSYkoTzMsU8tRFsf4L6FdjvDK4ZbouGmeyMQWkzAQh108 aGUBBEGaeVYZ5tcnolJSSW47a8hQUPtMwuqs1nJgmhrbhT/9/ElPFMvnpTwUdh1Iit06 OWEhqOnhG7TIaInmVS6P8sVnzKqzyXbYsYfpI3xjub4bdXkKpka8sRorVJMfstjSqrn6 NflQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GDfr7FzL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si9902791ejf.140.2019.11.11.12.54.12; Mon, 11 Nov 2019 12:54:39 -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=@gmail.com header.s=20161025 header.b=GDfr7FzL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbfKKUvY (ORCPT + 99 others); Mon, 11 Nov 2019 15:51:24 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:35619 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbfKKUvY (ORCPT ); Mon, 11 Nov 2019 15:51:24 -0500 Received: by mail-io1-f66.google.com with SMTP id x21so16146150iol.2; Mon, 11 Nov 2019 12:51:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B5hctI9CUIkowY+km5A5wQbF2v/7Tj6av1qpKeqwyrs=; b=GDfr7FzLA89ibKp/TteL4uMThinW3HdCRBPytMDcFym1rWJzwhvVn8wemgnWP0SW2V BQd7RLoT/DCWnUAELlCwfQMtbVU+HXUmVlFw4zyD3gb8vPal4x7qcnCoWwbSAoXYFUm0 hY3DH8rYLUEcAcnfimeT9zFWS2YIDR7pTCakpIB7bfKfi2dYlm5fd7Vw/PceIbl/hodE bQd+Pva8d1Ygi2aMsM/lhnkY+atkDAQz/xcIxUJWaRH+eFFPT9eE5Hh51AFcIAniRZBz 8A9UvuoEzEf9kVNyORsgqRRSAlV/WMVdMNMHUcLvsoYV3J2BpgSBaPsTes60ayoqjbGM EOJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B5hctI9CUIkowY+km5A5wQbF2v/7Tj6av1qpKeqwyrs=; b=Z6XStFVlt2KQrl5wq9Ev7LCUlsbWQLTE0RKeswnCratUyZEqqmJ7Ki/xGTd2Yf3BUH d8AI7V0N4CZSrbVxSlId5RU2t736pMYMKjlwgH8DoYJoInbkE2TBejhUOtzlq7s03LhR IBVN3o29GlJh/a6pZx/jLhw9Gc/eTfVTHWpDxwo8P+ntblb4X27fDAd8TauzYwgd/5C4 MBZsNSpiymAYiOFKF2Ny1ubeDlh315XkeQrBiNKGzJBuMZbF8Gpg9gKUGCmFanMOIOK2 WKBEQfqgLI61lQM6r0PCifGngwBRvCcVhwP9eof4Pl+Hu/0MQ4IjVJulrZmYq5UDErba Dm0A== X-Gm-Message-State: APjAAAXXiMKoYKPA3KIckxBLH2IYjDDqcH00PUSyHr/1cj2EegukV4dZ NlGykppKMbNzkHCo5ExFyRYnNU/YsQ0i1VjTVBc= X-Received: by 2002:a02:ac07:: with SMTP id a7mr2559123jao.39.1573505481508; Mon, 11 Nov 2019 12:51:21 -0800 (PST) MIME-Version: 1.0 References: <20191108141555.31176-1-lhenriques@suse.com> <20191108164758.GA1760@hermes.olymp> <20191108171616.GA2569@hermes.olymp> <20191108173101.GA3300@hermes.olymp> <20191111163036.GA20513@hermes.olymp> In-Reply-To: <20191111163036.GA20513@hermes.olymp> From: Ilya Dryomov Date: Mon, 11 Nov 2019 21:51:47 +0100 Message-ID: Subject: Re: [RFC PATCH 0/2] ceph: safely use 'copy-from' Op on Octopus OSDs To: Luis Henriques Cc: Sage Weil , Jeff Layton , "Yan, Zheng" , Ceph Development , LKML Content-Type: text/plain; charset="UTF-8" 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 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. Thanks, Ilya