Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1976428imm; Thu, 7 Jun 2018 03:29:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL3e7tgSwA+w4L/fe5WW9fbeqbA6gcmQu9GBFi/fYKg3AAOp7uOD4vgYjf2IfvFyot1KS6t X-Received: by 2002:a63:84c6:: with SMTP id k189-v6mr1123058pgd.49.1528367376208; Thu, 07 Jun 2018 03:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528367376; cv=none; d=google.com; s=arc-20160816; b=rIGM8BlnvbkkRCV4HwoS9XE19WeH27fuZNVVA0p044gzloh3VgU6x08J84KKJ0Amps 8o+hmEwFHiKwgvT/3FD6sibw1FWKni3wkhLjiPd1Tfw0p2mMAuyQ2QJGnL+lSYXnilfs 9Cq0LUkMHsDGNaYj2rQXmAznvupW82hWMUrUEdQ8r4bCM/CfpOdZfib/RKobpQuqwlVD 5DSFOflAlnBQKfFvyylbfk7SJX2HZ0pzn5WjagJJvCgpJVW1JrsheR9cQ0OWeVL6J5qB MceugD3lgydyiBahe2dVionbk9G1AU5QsPFhVXAZnGHDGbn0qnGM8ehqDucLzDGVoXM1 cH8A== 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=3CyZpgFd0ykWQliH7ObOTbCAU9VTkCIW3liyJZDyb78=; b=SB+VKcnNWeGwrsL7tyE5PsShz20NbvKtLbFldRJWUOyvhnhDNcJIl7gZtK+yBfDdMS /pJ+d6j4lCB6OFLw5csmd7yr2JbvjLefP4AmnwVsrAIVepd0HvzTHstT0NqevQKYoRaa VmdNQXlNDTUd3fuWpvwJ/4IFVNlQmDLP5MkEmL2pnyTl2tMUTwJTe1OuPc37N/gi5ZjZ wxKcawTVUfyUvawzE8NHrZNJQMphHaKi3DDBNFgnMI3bsxYiZC+EtnhKmNUwJsDcr4RB wRpeA9oj9eJRYZQAht1molmC4HwG0oHiIKWwfKJmAMhnpNrI+6K/tNzzT/tXjqKFX15W Wf2Q== 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 y20-v6si6541643pfm.186.2018.06.07.03.29.21; Thu, 07 Jun 2018 03:29:36 -0700 (PDT) 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 S1753571AbeFGJtA (ORCPT + 99 others); Thu, 7 Jun 2018 05:49:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:56459 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbeFGJs7 (ORCPT ); Thu, 7 Jun 2018 05:48:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 286B2AD4A; Thu, 7 Jun 2018 09:48:58 +0000 (UTC) From: NeilBrown To: James Simmons Date: Thu, 07 Jun 2018 19:48:47 +1000 Cc: Oleg Drokin , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 10/11] staging: lustre: move ldlm into ptlrpc In-Reply-To: References: <152826510267.16761.14361003167157833896.stgit@noble> <152826511923.16761.9237280635711887801.stgit@noble> Message-ID: <87sh5zlyf4.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 Thu, Jun 07 2018, James Simmons wrote: >> The ldlm code is built into the ptlrpc module, yet it lived in a >> separate directory. This requires filename editing in the Makefile >> and make it difficult to e.g. build the .s file for code in ldlm. >>=20 >> All the ldlm files have distinctive names so confusion from having >> ptlrpc and ldlm in the same directory is unlikely. So move them all >> into ptlrpc. > > Nak. The reason is it would be nice to keep the directory structure. > What really needs to be done and Oleg has looked into it is to reduced > the number of modules created down to two, one for LNet and the other > lustre.ko. This also is a step in the right direction to remove the > create struct obd_ops and struct md_ops pointer madness. Well their > is the issue with obd echo client but we can deal with this at a later=20 > date. Also the number of EXPORT_SYMBOLS and things will greatly reduce. Yeah, you are probably right. I had a bit of a look at how to build everything into a single module. You can do with by having a single make file that lists parts from other directories - the same way that ptlrpc includes files from ldlm - but that is rather ugly. I've very nearly got it working using the lib-y infrastructure. I can build lnet as a single module, but the dependency calc isn't quite right so things happen in the wrong order. The build fails the first time because some files don't exist, then succeeds on the second run. Hopefully I'll figure out how to make it work tomorrow. Thanks for the review, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlsY/4AACgkQOeye3VZi gbnYWw//XUQQgqitDLcH3XdHXNQv4ntl7Ew4+hB9Buz9P+bA3xSDerjT5LSnqwGJ WqbwtVNG3UYWlvGF1xSLOyb1BVFqYhV9S8D8g4ujo84CKwsQ90tU/v+v2q8HTr7c aiz4hQTp9d9zPq7X8Zc0hXXFbT7yeB9O/xaxmouPRTSGDwc+5nZzEK5v5TkpKP8F n86eUqyhW6jZZp/lbkDSMl1Gur6c89FaBGrDa3yPmhFuju9mDnYKy1CEye7UGfqL l6CBdaiYIadwpoVUQpILZriigcfuTDCnKce+BGmINAepWHqWgBu1V2OPAUxXX69E CwNc7IBH102C5/jsYlDX2RT6cnufttKWEeiDq1ih//eGBXiPiUQtKrKz3HSoo2qi pElxegskA+P/q0J57yi4Z/OfgLdS0aClpxoTquW8BlERKG9RieBnfBFJCplUOcK0 u+ZR/LFlaZ5AbojbXVfj8AdN9cH17XRJWEWTZ07ahCGlQ45MUeEY/8hcDI+MwerP XqZ7BDHAXuD8ACadOZOonCHjAw9mpc7qdgBRsdlV196cCUxAFWhNF+2GClpiJcL3 ekcPLJ9ljyjUyOXvMNWWHc01vklqbpVVWVAoy6xNTfcqXu0SLvyUTnQ3SfQGonTt EgzFaMRy472HG8ezTdaxMkaepgJ+juABE1WrBNolks3qUR4RA0s= =wWDY -----END PGP SIGNATURE----- --=-=-=--