Received: by 10.223.176.5 with SMTP id f5csp109830wra; Thu, 8 Feb 2018 17:40:52 -0800 (PST) X-Google-Smtp-Source: AH8x226RBt62EPa+t/TZL+siAEjIvb1HtSJQQzp/FI6iXD+A3Gg4Z8BlU98Hc6J5BXVkkEfEZdt9 X-Received: by 10.99.96.137 with SMTP id u131mr943852pgb.103.1518140452508; Thu, 08 Feb 2018 17:40:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518140452; cv=none; d=google.com; s=arc-20160816; b=TxMm2+yfnvlW9kipt9SIhTW7BUhNjd6zTBYn2s5Gm7z/i/QVV7z9iivZIcUpxp8FrZ 2aLEryJF4CxFqU8faFVhkH9/cdITBIquLf6sfh43gesa1ywscMiXIREhujfENFRRzWk6 z6bEzrZs2Efu9w2hpKU5ig/3tT4F+RnexGUrfX017Yj2eZNl2EcxK+IChxj/+66TIz4q QgTkQiCLXbymC6KxL0DySd/ysTa6NVIBURt+FEMW1sFvkcX1dT5GeuaUzjjYvCE/0hdl QoLIKNcPZhJpUvNeLv2bK/muWyWaL3RXNjkN/Lj1rZCnqwRlMDbJQEDGaZVE8eQO0PKf H61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=EhiYI66lT5zYcPVd/7xzrZ4SMFSN/BDF0wbV4+T9o5M=; b=MmYLLBvw8J/DBKgzrVjFRfmQ3Dyrt2G2spw8hhVXN24o0/VqbVQ8Wb2eSEUg+FXe/F OtzjvHth38QGiDqrp8dUXdebLmgchzJYnnf92ai2jrzWZs+MEMUaDtnP9ichD577Xqty fqa7+A20MeqA2fbDqUwtbfMob0s3l8bD2mo1goTeHAacc86G1o/yJpIS5RkLPkVII/Mf GFwK6zSSYQpfQ1+zJlcBnwUO7kTZyEWnBvWsoGtxON+r/gFr6gpXeX6N4dF6dAsEynzF kUIjMrvZigd0ILhQ7JtLR55va/EYzQUDVP+78RG0KDRt2qVrGwd8wcYkKbFYgVN+fxZ6 Ectg== 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 a1-v6si804453plp.568.2018.02.08.17.40.26; Thu, 08 Feb 2018 17:40: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 S1752421AbeBIBja (ORCPT + 99 others); Thu, 8 Feb 2018 20:39:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:45470 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324AbeBIBj2 (ORCPT ); Thu, 8 Feb 2018 20:39:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A27FEABA3; Fri, 9 Feb 2018 01:39:26 +0000 (UTC) From: NeilBrown To: James Simmons , Greg Kroah-Hartman , devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin Date: Fri, 09 Feb 2018 12:39:18 +1100 Cc: Linux Kernel Mailing List , Lustre Development List , wang di , James Simmons Subject: Re: [PATCH 41/80] staging: lustre: lmv: separate master object with master stripe In-Reply-To: <1471378773-24590-42-git-send-email-jsimmons@infradead.org> References: <1471378773-24590-1-git-send-email-jsimmons@infradead.org> <1471378773-24590-42-git-send-email-jsimmons@infradead.org> Message-ID: <87r2pvkkl5.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, Aug 16 2016, James Simmons wrote: >=20=20 > +static inline bool > +lsm_md_eq(const struct lmv_stripe_md *lsm1, const struct lmv_stripe_md *= lsm2) > +{ > + int idx; > + > + if (lsm1->lsm_md_magic !=3D lsm2->lsm_md_magic || > + lsm1->lsm_md_stripe_count !=3D lsm2->lsm_md_stripe_count || > + lsm1->lsm_md_master_mdt_index !=3D lsm2->lsm_md_master_mdt_index || > + lsm1->lsm_md_hash_type !=3D lsm2->lsm_md_hash_type || > + lsm1->lsm_md_layout_version !=3D lsm2->lsm_md_layout_version || > + !strcmp(lsm1->lsm_md_pool_name, lsm2->lsm_md_pool_name)) > + return false; Hi James and all, This patch (8f18c8a48b736c2f in linux) is different from the corresponding patch in lustre-release (60e07b972114df). In that patch, the last clause in the 'if' condition is + strcmp(lsm1->lsm_md_pool_name, + lsm2->lsm_md_pool_name) !=3D 0) Whoever converted it to "!strcmp()" inverted the condition. This is a perfect example of why I absolutely *loathe* the "!strcmp()" construct!! This causes many tests in the 'sanity' test suite to return =2DENOMEM (that had me puzzled for a while!!). This seems to suggest that no-one has been testing the mainline linux lustre. It also seems to suggest that there is a good chance that there are other bugs that have crept in while no-one has really been caring. Given that the sanity test suite doesn't complete for me, but just hangs (in test_27z I think), that seems particularly likely. So my real question - to anyone interested in lustre for mainline linux =2D is: can we actually trust this code at all? I'm seriously tempted to suggest that we just rm -r drivers/staging/lustre drivers/staging is great for letting the community work on code that has been "thrown over the wall" and is not openly developed elsewhere, but that is not the case for lustre. lustre has (or seems to have) an open development process. Having on-going development happen both there and in drivers/staging seems a waste of resources. Might it make sense to instead start cleaning up the code in lustre-release so as to make it meet the upstream kernel standards. Then when the time is right, the kernel code can be moved *out* of lustre-release and *in* to linux. Then development can continue in Linux (just like it does with other Linux filesystems). An added bonus of this is that there is an obvious path to getting server support in mainline Linux. The current situation of client-only support seems weird given how interdependent the two are. What do others think? Is there any chance that the current lustre in Linux will ever be more than a poor second-cousin to the external lustre-release. If there isn't, should we just discard it now and move on? Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlp8+8YACgkQOeye3VZi gbmBKQ/+N2KBAw2lRurkIXFnMflCyFJ0tYIWK9PpF+rYiPB4t5XDzGdTJ8+hk9iM 9jVr39LMliYEWCq3AZkSYFCeCg2GgE3jLUw9waE1EjEyhwOxCkcnrD3E42W2r9YK PN9lren4hLelbFRhTO9xCTKT9wQKI1/JzN/Tbaas2hVH0UwQ8gfB572fhCFz1TnV DG47NnBwjm52gjcq6imOLRooy6hfuw2n638F9Ibz1/c3WQbgEWi0CgO/0bjeCMQV j9f4NiWapYIlZsg5+mpKZkEgEum5XCYZtsUXVbQLM2LoEMuNI5658VEurE/jqvzd muEyXYSusWeOc+AJZT67PMMfmy3BHCwS9qMAgGMaMtVKWnEuGztSCNjJs/LckLuC s9icTPStymLIvmZKT+hIUz3H48FWqDh354ALu2TDDq7kH822VnSWoz1fgP6BZ80T PCq2LIVoNvG/5M8xInyzvyMgaGsGamKVEIoNJsqpsn3/Xgh+rayLX5b/FRhkt2Aq u4hRSNXFSNQAr6SDrq1He/WkigyAJ41XA/bnC6gzdnGTUsA9SZs6e6rRq08jKmzw Myt6RUZ3+EhPir/iv/CDbw6/1rvq7eDngNpmWPNkwW/FTEiI0+b/4p6bqjDHQY1r T1hfXYtzR3pCxiuEJeRT8GLAz+oFgKFFN+LVu4nMgLQK2Ks9DG4= =OIfh -----END PGP SIGNATURE----- --=-=-=--