[LU-5275] clean up technical debt for proc_dir_entry changes Created: 01/Jul/14  Updated: 19/Feb/15  Resolved: 19/Feb/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.7.0

Type: Bug Priority: Minor
Reporter: Jodi Levi (Inactive) Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
is related to LU-5983 builds broken by LU-5275 fix Resolved
is related to LU-4416 support for 3.12 linux kernel Resolved
is related to LU-3319 Adapt to 3.10 upstream kernel proc_di... Resolved
Severity: 3
Rank (Obsolete): 14723

 Description   

This is to address the last comment made in LU-3319 to cleanup the technical debt.



 Comments   
Comment by James A Simmons [ 02/Jul/14 ]

Can you link this to LU-4416.

Comment by James A Simmons [ 29/Aug/14 ]

First of the patches

http://review.whamcloud.com/#/c/11451
http://review.whamcloud.com/#/c/11640

Comment by Jodi Levi (Inactive) [ 12/Sep/14 ]

Patches landed to Master. Please reopen ticket if more is expected for this ticket.

Comment by James A Simmons [ 14/Sep/14 ]

Sorry about the confusion but more patches are coming. Please reopen this ticket.

Comment by Peter Jones [ 14/Sep/14 ]

Do you have a rough idea how many James?

Comment by James A Simmons [ 14/Sep/14 ]

I say two, maybe three more patches.

Comment by James A Simmons [ 15/Oct/14 ]

New cleanup patch at

http://review.whamcloud.com/#/c/12298

One patch left after this to cleanup lock handling that needs to be worked on.

Comment by Jodi Levi (Inactive) [ 10/Nov/14 ]

James,
Are you planning to submit the patch for cleaning up lock handling for the 2.7 release?

Comment by James A Simmons [ 14/Nov/14 ]

Yes I plan to update the second patch. The problem is the first patch is ready to land but it is based a earlier master revision. That current master has changed enough that I have to rebase the second patch I have after the first patch lands to master.

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12298/
Subject: LU-5275 lprocfs: remove last of non seq data structs and functions.
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0ad4f8a4227ed7dd93fec99d33c6bb25056473fc

Comment by James A Simmons [ 04/Dec/14 ]

Update patch http://review.whamcloud.com/#/c/12235. This should be the last patch in the series.

Comment by Gerrit Updater [ 05/Dec/14 ]

Johann Lombardi (johann.lombardi@intel.com) uploaded a new patch: http://review.whamcloud.com/12953
Subject: Revert "LU-5275 lprocfs: remove last of non seq data structs and functions."
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 80e25c90a3d45ee0ec55b0a83282168b0583303a

Comment by Gerrit Updater [ 05/Dec/14 ]

Johann Lombardi (johann.lombardi@intel.com) merged in patch http://review.whamcloud.com/12953/
Subject: Revert "LU-5275 lprocfs: remove last of non seq data structs and functions."
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b1e595c09e1b07a6840142b3ae015b8a5a8affeb

Comment by Johann Lombardi (Inactive) [ 05/Dec/14 ]

For the record, i have reverted http://review.whamcloud.com/#/c/12298 since it broken the el6.6 build.

Comment by Jodi Levi (Inactive) [ 05/Dec/14 ]

Patch landed to master.

Comment by Gerrit Updater [ 01/Jan/15 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13225
Subject: LU-5275 lprocfs: reduce scope of params_tree.h
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d4921339526c9076bf7a72660c86dac883b9eed4

Comment by James A Simmons [ 06/Jan/15 ]

I have done exhaustive testing and looked very closely at the what states lustre procfs handling is in for the case of client and server being on the same node. I loaded lod then lov and vice versa as well as unload the modules in the two possible orders. I detected no leaks in either case. In order to fill out out proc trees we have to preform mounting/unmounting of the MDT and the client. I tried both orders of mounting and
umount and saw no issues with remove_proc_subtree. Tired various combos of mounting/unmounting and module loading/unloading. No memory leaks/disappearing directories or handling symlinks occurred. Please note this is all done on a 3.12 kernel. Also looking at detail of the procfs initialization and removal don't show a issue with remove_proc_subtree.

Comment by Gerrit Updater [ 08/Jan/15 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13299
Subject: LU-5275 lprocfs: replace LPROCFS with CONFIG_PROC_FS
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1cd9b42ae4bfa063ddeb1d9c153b86afb1373264

Comment by Gerrit Updater [ 09/Jan/15 ]

James Simmons (uja.ornl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13330
Subject: LU-5275 lprocfs: sync names to upstream kernel lustre client
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a0ab151983e0655f95f7c5b53b09054b5159578a

Comment by Gerrit Updater [ 10/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13225/
Subject: LU-5275 lprocfs: reduce scope of params_tree.h
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f9920b4924edce1bd341622eee4281fdcd41845a

Comment by Gerrit Updater [ 11/Jan/15 ]

James Simmons (uja.ornl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13341
Subject: LU-5275 libcfs: merge params_tree.h into lprocfs_status.h
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b22696a65873fdb69caf2a652f3bfe266bfcb489

Comment by James A Simmons [ 13/Jan/15 ]

Finally finished off the patch set thanks to John Hammond. The patches to finish this are:

http://review.whamcloud.com/#/c/13299
http://review.whamcloud.com/#/c/13341
http://review.whamcloud.com/#/c/12235
http://review.whamcloud.com/#/c/13330

Comment by Gerrit Updater [ 19/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13299/
Subject: LU-5275 lprocfs: replace LPROCFS with CONFIG_PROC_FS
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7817e4c785d075aae76b635dcf799064590833b0

Comment by Gerrit Updater [ 19/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13341/
Subject: LU-5275 libcfs: merge params_tree.h into lprocfs_status.h
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 17d614c7017c41d3484b163c8d86d324335c93e0

Comment by Gerrit Updater [ 19/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12235/
Subject: LU-5275 lprocfs: remove all non-seq file functions
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b66962c0f92b29353ac255400783e9b0faa9c2e3

Comment by Gerrit Updater [ 19/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13330/
Subject: LU-5275 lprocfs: sync names to upstream kernel lustre client
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a172863af11bcef474191ca40eaa479179457c08

Comment by Gerrit Updater [ 20/Jan/15 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13463
Subject: LU-5275 build: add LPROCFS to the deprecated symbol list
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f0b41cec79d7b8f86387afb94820e8e507c2b21b

Comment by Gerrit Updater [ 26/Jan/15 ]

James Simmons (uja.ornl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13527
Subject: LU-5275 gnilnd: Add definition for PDE_DATA
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d39d74651f6d0ee0a0f849ac558e243f03c52715

Comment by James A Simmons [ 26/Jan/15 ]

Only two patches left

Comment by Gerrit Updater [ 27/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13463/
Subject: LU-5275 build: add LPROCFS to the deprecated symbol list
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5639b66882d6e53e97ad2f799f8aba1efecce9e9

Comment by James A Simmons [ 14/Feb/15 ]

Only one small one line patch to merge to finish this off. Ready for merger.

Comment by Gerrit Updater [ 19/Feb/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13527/
Subject: LU-5275 gnilnd: Add definition for PDE_DATA
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1ede0cfcbaf021da493fcd4352f9d092e176a292

Comment by Jodi Levi (Inactive) [ 19/Feb/15 ]

Patches landed to Master

Generated at Sat Feb 10 01:50:04 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.