[RFC PATCH 0/3] Moving lustre procfs stuff to sysfs & questions.

2015-05-02 Thread green
From: Oleg Drokin Greg, I wonder if you can take at least a brief look and tell me if this is the direction you were envisioning wrt this particular cleanup. It's not all-inclusive, but I have a long flight tomorrow so if the direction is right, I can convert more of this stuff. This does not t

[PATCH 1/3] staging/lustre: Generic helpers for sysfs

2015-05-02 Thread green
From: Oleg Drokin Add generic helpers to allow displaying oof lustre-specific values in /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 26 ++ .../lustre/lustre/obdclass/lprocfs_status.c| 24 2

[PATCH 3/3] staging/lustre/llite: move some procfs files to sysfs

2015-05-02 Thread green
From: Oleg Drokin Move just first few files from /proc/fs/lustre/llite/*/ to /sys/fs/lustre/llite/*/: blocksizefilesfree fstype kbytesfree max_read_ahead_mb client_type filestotal kbytesavail kbytestotal uuid More to follow. Signed-off-by: Oleg Drokin --- .../staging/lustre/

[PATCH 2/3] staging/lustre: Move /proc/fs/lustre root level files to sysfs

2015-05-02 Thread green
From: Oleg Drokin except devices, for now. Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/linux-module.c| 116 + 1 file changed, 72 insertions(+), 44 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/stagi

[PATCH] staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

2015-05-02 Thread green
From: Oleg Drokin Create libcfs_kvzalloc and libcfs_kvzalloc_cpt are are designed to replace OBD_ALLOC_LARGE and OBD_CPT_ALLOC_LARGE. Not a drop-in replacement as they also take gfp flags armument for more flexibility. Signed-off-by: Oleg Drokin --- This is how I envision the OBD_ALLOC_LARGE r

[PATCH] staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

2015-05-04 Thread green
From: Oleg Drokin Create libcfs_kvzalloc and libcfs_kvzalloc_cpt that are designed to replace OBD_ALLOC_LARGE and OBD_CPT_ALLOC_LARGE. Not a drop-in replacement as they also take gfp flags armument for more flexibility. Signed-off-by: Oleg Drokin --- Greg, I have addressed your comments wrt t

[PATCH 01/25] staging/lustre: Generic helpers for sysfs

2015-05-16 Thread green
From: Oleg Drokin Add generic helpers to allow displaying oof lustre-specific values in /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 21 +++ .../lustre/lustre/obdclass/lprocfs_status.c| 24 ++ 2 f

[PATCH 00/25] Start of removal of lustre procfs support

2015-05-16 Thread green
From: Oleg Drokin This is beginning of work in the area. It takes a bit longer than anticipated, so I don't want for you (Greg) to have an impression we disppeared again on this issue. Patches move all sensible parameters from /proc/fs/lustre and /proc/fs/lustre/llite to /sys/fs/lustre. Teh rema

[PATCH 04/25] staging/lustre/llite: move /proc/fs/lustre/llite/blocksize to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move blocksize file from /proc/fs/lustre/llite/*/ to /sys/fs/lustre/llite/*/blocksize Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 14 +++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 13 inser

[PATCH 03/25] staging/lustre/llite: Preparation to move /proc/fs/lustre/llite to sysfs

2015-05-16 Thread green
From: Oleg Drokin Add necessary infrastructure, add support for mountpoint registration in /proc/fs/lustre/llite Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 4 drivers/staging/lustre/lustre/llite/llite_lib.c| 7 -- drivers/staging/lustre/l

[PATCH 05/25] staging/lustre/llite: move /proc/fs/lustre/llite/kbytes* to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move kbytestotal, kbytesavail and kbytesfree files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 42 +++ drivers/staging/lustre/sysfs-fs-lustre| 20 +++

[PATCH 19/25] staging/lustre/llite: remove llite/*_cookiesize proc files

2015-05-16 Thread green
From: Oleg Drokin Since Lustre 2.5, cookiesize is unused on the clients since MDS now does final object unlink by itself, so drop these max_cookiesize and default_cookiesize files. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 34 --- 1

[PATCH 10/25] staging/lustre/llite: move /proc/fs/lustre/llite/max_read_ahead_mb to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_read_ahead_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 33 --- drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files changed, 25

[PATCH 08/25] staging/lustre/llite: move /proc/fs/lustre/llite/fstype to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move fstype file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 13 ++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 12 insertions(+), 7 de

[PATCH 02/25] staging/lustre: Move /proc/fs/lustre root level files to sysfs

2015-05-16 Thread green
From: Oleg Drokin except devices, for now. Signed-off-by: Oleg Drokin Signed-off-by: Dmitry Eremin --- .../staging/lustre/lustre/include/lprocfs_status.h | 2 +- .../lustre/lustre/obdclass/linux/linux-module.c| 106 - .../lustre/lustre/obdclass/lprocfs_status.c

[PATCH 11/25] staging/lustre/llite: move llite/max_read_ahead_per_file_mb to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_read_ahead_per_file_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 33 +++ drivers/staging/lustre/sysfs-fs-lustre| 6 + 2 files ch

[PATCH 06/25] staging/lustre/llite: move /proc/fs/lustre/llite/files* to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move filestotal and filesfree files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 28 +++ drivers/staging/lustre/sysfs-fs-lustre| 12 ++ 2 file

[PATCH 09/25] staging/lustre/llite: move /proc/fs/lustre/llite/uuid to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move uuid file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 13 ++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 12 insertions(+), 7 dele

[PATCH 17/25] staging/lustre/llite: move /proc/fs/lustre/llite/lazystatfs to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move lazystatfs file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 28 +++ drivers/staging/lustre/sysfs-fs-lustre| 8 +++ 2 files changed, 22 inse

[PATCH 14/25] staging/lustre/llite: remove unused ll_max_rw_chunk

2015-05-16 Thread green
From: Oleg Drokin ll_max_rw_chunk seems to be unused ever since we implemented CLIO in 2.0, so remove it and all supporting infrastructure. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 5 - drivers/staging/lustre/lustre/llite/llite_lib.c| 1 - d

[PATCH 18/25] staging/lustre/llite: move /proc/fs/lustre/llite/*_easize to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_easize and default_easize files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 26 +++ drivers/staging/lustre/sysfs-fs-lustre| 14

[PATCH 15/25] staging/lustre/llite: move /proc/fs/lustre/llite/stats_track* to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move stats_track_pid, stats_track_ppid and stats_track_gid files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 90 +++ drivers/staging/lustre/sysfs-fs-lustre

[PATCH 16/25] staging/lustre/llite: move /proc/fs/lustre/llite/statahead_{max, agl} to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move statahead_max and statahead_agl files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 60 +++ drivers/staging/lustre/sysfs-fs-lustre| 16 ++ 2 f

[PATCH 24/25] staging/lustre/libcfs: Remove unneeded lnet watchdog_ratelimit sysctl

2015-05-16 Thread green
From: Dmitry Eremin It is no longer used anywhere. Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 1 - drivers/staging/lustre/lustre/libcfs/debug.c | 3 --- drivers/staging/lustre/lustre/libcfs/module.c | 12 --

[PATCH 07/25] staging/lustre/llite: move /proc/fs/lustre/llite/client_type to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move client_type file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 19 +++ drivers/staging/lustre/sysfs-fs-lustre| 8 2 files changed, 15 insert

[PATCH 20/25] staging/lustre/llite: move /proc/fs/lustre/llite/xattr_cache to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move xattr_cache file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 30 +++ drivers/staging/lustre/sysfs-fs-lustre| 7 ++ 2 files changed, 21 inse

[PATCH 23/25] staging/lustre/libcfs: Remove redundant enums and sysctl moduleparams

2015-05-16 Thread green
From: Dmitry Eremin /proc/sys/lnet/lnet_memused Remove memory tracking for LNet. Remove redundant enums definition. Signed-off-by: Dmitry Eremin --- .../lustre/include/linux/libcfs/libcfs_private.h | 28 +-- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c| 12 --- .../sta

[PATCH 22/25] staging/lustre/libcfs: get rid of /proc/sys/lnet/console_backoff

2015-05-16 Thread green
From: Oleg Drokin module parameter libcfs_console_backoff accessible through /sys/module/libcfs/parameters/libcfs_console_backoff would do the same thing, just add a special "uintpos" parameter type to disallow 0 values too. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/libcfs/d

[PATCH 25/25] staging/lustre: remove alloc_fail_rate sysctl

2015-05-16 Thread green
From: Oleg Drokin It was used to control allocation failure rate, but there is in-kernel way of doing that that's more versatile too. This is going to remove just the sysctl, the underlying variable will be removed once all OBD_ALLOC* macros removal patchseries land. Signed-off-by: Oleg Drokin

[PATCH 21/25] staging/lustre/libcfs: Remove redundant sysctl moduleparams

2015-05-16 Thread green
From: Oleg Drokin /proc/sys/lnet/console_ratelimit, debug_path and panic_on_lbug are module parameters with no special magic accessible via /sys/module/libcfs/parameters/libcfs_console_ratelimit, /sys/module/libcfs/parameters/libcfs_debug_file_path and /sys/module/libcfs/parameters/libcfs_panic_o

[PATCH 13/25] staging/lustre/llite: move /proc/fs/lustre/llite/checksum_pages to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move checksum_pages file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 28 +++ drivers/staging/lustre/sysfs-fs-lustre| 7 ++ 2 files changed, 21 i

[PATCH 12/25] taging/lustre/llite: move llite/max_read_ahead_whole_mb to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_read_ahead_whole_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 31 +++ drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files chang

[PATCH 0/4] Few lustre fixes and cleanups.

2015-05-16 Thread green
From: Oleg Drokin This set fixes a couple of style issues, and a couple of bugs. Please consider Oleg Drokin (4): staging/lustre: Only set INTERRUPTIBLE state before calling schedule staging/lustre/ptlrpc: Fix wrong indenting in plain_authorize() staging/lustre/ptlrpc: Fix potential NULL

[PATCH 1/4] staging/lustre: Only set INTERRUPTIBLE state before calling schedule

2015-05-16 Thread green
From: Oleg Drokin In __l_wait_event the condition could be a complicated function that does allocations and other potentialy blocking activities, so it sohuld not be called in a task state other than RUNNABLE Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_lib.h | 1

[PATCH 4/4] staging/lustre/llite: Fix wrong identing in ll_setxattr_common

2015-05-16 Thread green
From: Oleg Drokin smatch has highlighted wrong indenting that results from commit 7fc1f831d83f ("staging/lustre/llite: extended attribute cache") Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/xattr.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --

[PATCH 3/4] staging/lustre/ptlrpc: Fix potential NULL pointer dereference

2015-05-16 Thread green
From: Oleg Drokin In lov_unpackmd() there's this strange bit of code where we first try to look inside of lmm striping pattern for it's type, and then we check if the pattern is NULL which cannot be right. Move the check under if (lmm) branch so that it's safe. Found by Coverity version 6.6.1 S

[PATCH 2/4] staging/lustre/ptlrpc: Fix wrong indenting in plain_authorize()

2015-05-16 Thread green
From: Oleg Drokin smatch highlighted a wrongly indented bit of code that almost hides the extra assignment. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ptlrpc/sec_plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/s

[PATCH 01/58] staging/lustre: Generic helpers for sysfs

2015-05-21 Thread green
From: Oleg Drokin Add generic helpers to allow displaying oof lustre-specific values in /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 21 +++ .../lustre/lustre/obdclass/lprocfs_status.c| 24 ++ 2 f

[PATCH 00/58] Remove lustre procfs usage

2015-05-21 Thread green
From: Oleg Drokin This somewhat long patch series removes all procfs usage in Lustre client. sysfs-fs-lustre file at the root of the lustre tree is added listing the files content added to sysfs for files that were moved to sysfs. Some other content taht did not fit sysfs or that I do not believe

[PATCH 04/58] staging/lustre/llite: move /proc/fs/lustre/llite/blocksize to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move blocksize file from /proc/fs/lustre/llite/*/ to /sys/fs/lustre/llite/*/blocksize Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 15 --- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 14 inse

[PATCH 02/58] staging/lustre: Move /proc/fs/lustre root level files to sysfs

2015-05-21 Thread green
From: Oleg Drokin except devices, for now. Signed-off-by: Oleg Drokin Signed-off-by: Dmitry Eremin --- .../staging/lustre/lustre/include/lprocfs_status.h | 2 + .../lustre/lustre/obdclass/linux/linux-module.c| 111 - drivers/staging/lustre/sysfs-fs-lustre

[PATCH 06/58] staging/lustre/llite: move /proc/fs/lustre/llite/files* to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move filestotal and filesfree files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 30 --- drivers/staging/lustre/sysfs-fs-lustre| 12 + 2 files

[PATCH 03/58] staging/lustre/llite: Preparation to move /proc/fs/lustre/llite to sysfs

2015-05-21 Thread green
From: Oleg Drokin Add necessary infrastructure, add support for mountpoint registration in /proc/fs/lustre/llite Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 4 drivers/staging/lustre/lustre/llite/llite_lib.c| 7 -- drivers/staging/lustre/l

[PATCH 05/58] staging/lustre/llite: move /proc/fs/lustre/llite/kbytes* to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move kbytestotal, kbytesavail and kbytesfree files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 45 --- drivers/staging/lustre/sysfs-fs-lustre| 20 +++

[PATCH 07/58] staging/lustre/llite: move /proc/fs/lustre/llite/client_type to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move client_type file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 20 drivers/staging/lustre/sysfs-fs-lustre| 8 2 files changed, 16 inser

[PATCH 11/58] staging/lustre/llite: move llite/max_read_ahead_per_file_mb to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move max_read_ahead_per_file_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 35 --- drivers/staging/lustre/sysfs-fs-lustre| 6 2 files cha

[PATCH 15/58] staging/lustre/llite: move /proc/fs/lustre/llite/stats_track* to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move stats_track_pid, stats_track_ppid and stats_track_gid files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 99 --- drivers/staging/lustre/sysfs-fs-lustre

[PATCH 08/58] staging/lustre/llite: move /proc/fs/lustre/llite/fstype to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move fstype file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 14 +++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 13 insertions(+), 7 d

[PATCH 13/58] staging/lustre/llite: move /proc/fs/lustre/llite/checksum_pages to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move checksum_pages file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/llite_lib.c | 2 +- drivers/staging/lustre/lustre/llite/lproc_llite.c | 30 --- drivers/staging/lustre/sy

[PATCH 41/58] staging/lustre/obdecho: Remove procfs registration

2015-05-21 Thread green
From: Oleg Drokin obdecho client seems to be only registering useless proc values that are of no use to anybody. Remove them. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdecho/Makefile | 2 +- .../staging/lustre/lustre/obdecho/echo_client.c| 8 drivers/staging

[PATCH 10/58] staging/lustre/llite: move /proc/fs/lustre/llite/max_read_ahead_mb to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move max_read_ahead_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 35 +-- drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files changed, 27

[PATCH 39/58] staging/lustre: Remove useless num_refs procfs variable

2015-05-21 Thread green
From: Oleg Drokin Every obd type registers it, but it's not really needed by anybody. Remove all the supporting infrastructure too. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 2 -- drivers/staging/lustre/lustre/include/obd_class.h | 3 +--

[PATCH 17/58] staging/lustre/llite: move /proc/fs/lustre/llite/lazystatfs to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move lazystatfs file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 31 +-- drivers/staging/lustre/sysfs-fs-lustre| 8 ++ 2 files changed, 25 inser

[PATCH 20/58] staging/lustre/llite: move /proc/fs/lustre/llite/xattr_cache to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move xattr_cache file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 33 --- drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files changed, 24 inser

[PATCH 55/58] staging/lustre/obd: Rename lprocfs_add_symlink to ldebugfs_add_symlink

2015-05-21 Thread green
From: Oleg Drokin Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 12 ++-- drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 16 +--- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/drivers/staging/lustre/lu

[PATCH 18/58] staging/lustre/llite: move /proc/fs/lustre/llite/*_easize to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move max_easize and default_easize files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 30 --- drivers/staging/lustre/sysfs-fs-lustre| 14 +++

[PATCH 16/58] staging/lustre/llite: move /proc/fs/lustre/llite/statahead_{max, agl} to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move statahead_max and statahead_agl files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 66 --- drivers/staging/lustre/sysfs-fs-lustre| 16 ++ 2 f

[PATCH 44/58] staging/lustre/llite: make llite/lov and lmv symlinks

2015-05-21 Thread green
From: Oleg Drokin old proc code had /proc/sys/fs/lustre/llite/.../lov and lmv dirs that contained name of the dir in lustre/lov and lustre/lmv to better be able to find correct obd device there, but I imagien a better solution would be to just create a symlink with the same name. The name is then

[PATCH 50/58] staging/lustre/obdclass: remove unused sysctl enum definition

2015-05-21 Thread green
From: Dmitry Eremin Since we are removing lustre sysctls, this enum is no longer needed. Signed-off-by: Dmitry Eremin --- .../lustre/lustre/obdclass/linux/linux-sysctl.c| 24 -- 1 file changed, 24 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/linux/l

[PATCH 46/58] staging/lustre/mdc: move mdc-specific procfs files to sysfs

2015-05-21 Thread green
From: Oleg Drokin This moves max_rpcs_in_flight and max_pages_per_rpc to /proc/fs/lustre/mdc/.../ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/mdc/lproc_mdc.c | 68 +-- drivers/staging/lustre/sysfs-fs-lustre| 16 +++ 2 files changed, 60 inser

[PATCH 19/58] staging/lustre/llite: remove llite/*_cookiesize proc files

2015-05-21 Thread green
From: Oleg Drokin Since Lustre 2.5, cookiesize is unused on the clients since MDS now does final object unlink by itself, so drop these max_cookiesize and default_cookiesize files. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 34 --- 1

[PATCH 53/58] staging/lustre/obd: move status files from procfs to debugfs

2015-05-21 Thread green
From: Dmitry Eremin change type of * obd->obd_proc_entry * obd->obd_svc_procroot * lov->lov_pool_proc_entry * obd_type->typ_procroot * pool_desc->pool_proc_entry Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 4 ++ drivers/sta

[PATCH 54/58] staging/lustre/obd: remove unused proc_lustre_root

2015-05-21 Thread green
From: Dmitry Eremin Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 3 --- .../lustre/lustre/obdclass/linux/linux-module.c| 18 -- 2 files changed, 21 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lprocfs_stat

[PATCH 43/58] staging/lustre/obdclass: Move common obd proc files to sysfs

2015-05-21 Thread green
From: Oleg Drokin This moves uuid display and also underlying fs statistics. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 7 -- drivers/staging/lustre/lustre/lmv/lproc_lmv.c | 3 - drivers/staging/lustre/lustre/lov/lproc_lov.c | 15 drive

[PATCH 09/58] staging/lustre/llite: move /proc/fs/lustre/llite/uuid to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move uuid file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 14 +++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 13 insertions(+), 7 del

[PATCH 22/58] staging/lustre/ldlm: move cancel_unused_locks_before_replay to sysfs

2015-05-21 Thread green
From: Oleg Drokin /proc/fs/lustre/ldlm/cancel_unused_locks_before_replay is moved to /sys/fs/lustre/ldlm/cancel_unused_locks_before_replay Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c| 29 +- drivers/staging/lustre/lustre/ldlm/ldlm_reso

[PATCH 52/58] staging/lustre/fld: move all files from procfs to debugfs

2015-05-21 Thread green
From: Dmitry Eremin Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/fld/fld_internal.h | 5 +- drivers/staging/lustre/lustre/fld/fld_request.c| 66 -- drivers/staging/lustre/lustre/fld/lproc_fld.c | 42 +++--- drivers/staging/lustre/lustre/

[PATCH 21/58] staging/lustre/ldlm: Preparation to move /proc/fs/lustre/ldlm to sysfs

2015-05-21 Thread green
From: Oleg Drokin Add necessary infrastructure, register /sys/fs/lustre/ldlm, /sys/fs/lustre/ldlm/namespaces and /sys/fs/lustre/ldlm/services Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_dlm.h | 6 +++ drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c| 43

[PATCH 24/58] staging/lustre/ldlm: move namespace/lock_count to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ldlm display of lock_count from procfs to sysfs Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 29 -- drivers/staging/lustre/sysfs-fs-lustre | 6 + 2 files changed, 22 insertions(+), 13 deletions(-

[PATCH 25/58] staging/lustre/ldlm: move namespaces/lru_size to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ldlm display of lru_size from procfs to sysfs Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 31 ++ drivers/staging/lustre/sysfs-fs-lustre | 9 +++ 2 files changed, 23 insertions(+), 17 deletions(-

[PATCH 26/58] staging/lustre/ldlm: move namespaces/early_lock_cancel to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ldlm display of early_lock_cancel from procfs to sysfs Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 28 -- drivers/staging/lustre/sysfs-fs-lustre | 13 ++ 2 files changed, 29 insertions(+), 12

[PATCH 12/58] staging/lustre/llite: move llite/max_read_ahead_whole_mb to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move max_read_ahead_whole_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 34 --- drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files chang

[PATCH 27/58] staging/lustre/ldlm: move namespaces/lock_unused_count to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ldlm display of lock_unused_count from procfs to sysfs Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 14 -- drivers/staging/lustre/sysfs-fs-lustre | 7 +++ 2 files changed, 19 insertions(+), 2 deletions(-

[PATCH 57/58] staging/lustre/obd: Remove nid_stats tracking

2015-05-21 Thread green
From: Oleg Drokin This nid_stats tracking only makes sense on the server side, on the client there are no other clients to keep track of anyway. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/dt_object.h | 1 - .../staging/lustre/lustre/inc

[PATCH 23/58] staging/lustre/ldlm: move namespaces/resource_count to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ldlm display of resource_count from procfs to sysfs Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 12 +++- drivers/staging/lustre/sysfs-fs-lustre | 7 +++ 2 files changed, 14 insertions(+), 5 deletions(-) di

[PATCH 28/58] staging/lustre/ldlm: move namespaces/lru_max_age to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ldlm display of lru_max_age from procfs to sysfs Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 30 -- drivers/staging/lustre/sysfs-fs-lustre | 7 + 2 files changed, 35 insertions(+), 2 deletions(-

[PATCH 31/58] staging/lustre/ldlm: move procfs ldlm pool stats to sysfs

2015-05-21 Thread green
From: Oleg Drokin Suitable contents of /proc/fs/lustre/ldlm/namespaces/.../pools/ is moved to /sys/fs/lustre/ldlm/namespaces/.../pools/: cancel_rate grant_plan grant_speed lock_volume_factor server_lock_volume granted grant_rate limit recalc_period Signed-off-by: Oleg Drokin --- drivers/stagin

[PATCH 14/58] staging/lustre/llite: remove unused ll_max_rw_chunk

2015-05-21 Thread green
From: Oleg Drokin ll_max_rw_chunk seems to be unused ever since we implemented CLIO in 2.0, so remove it and all supporting infrastructure. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 5 - drivers/staging/lustre/lustre/llite/llite_lib.c| 1 - d

[PATCH 37/58] staging/lustre/ldlm: move all remaining files from procfs to debugfs

2015-05-21 Thread green
From: Dmitry Eremin Move all files except stats. It will be moved later after change type of obddev->obd_proc_entry member. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_dlm.h | 17 +-- drivers/staging/lustre/lustre/include/lustre_ne

[PATCH 32/58] staging/lustre: Add debugfs root

2015-05-21 Thread green
From: Oleg Drokin This is just plumbing for migrating remaining procfs to debugfs support Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 25 - .../lustre/lustre/obdclass/linux/linux-module.c| 32 ++- .../lustre/lu

[PATCH 34/58] staging/lustre/ptlrpc: Add infrastructure for sysfs migration

2015-05-21 Thread green
From: Oleg Drokin Added necessary plumbing for ptlrpc sysfs integration for registered services, sysfs directory registration. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 5 +++ drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c| 3 +- .../staging/lus

[PATCH 29/58] staging/lustre/ldlm: remove server-side congested locks support

2015-05-21 Thread green
From: Oleg Drokin This code only makes sense on the server, also while we are at it drop registration of server-side procfs values and as all client side values were already moved to sysfs - also drop now unused procfs helpers. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/inclu

[PATCH 38/58] staging/lustre/ptlrpc: move sptlrpc procfs entry to debugfs

2015-05-21 Thread green
From: Dmitry Eremin We might want eventuall split it into a bunch of single-value sysfs entries, I imagine, but there is no urgent need now. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_sec.h | 8 --- drivers/staging/lustre/lust

[PATCH 36/58] staging/lustre/ptlrpc: move procfs high_priority_ratio file to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ptlrpc service high_priority_ratio entry from procfs to sysfs. Currently in use only by ldlm callback service only in /sys/fs/lustre/ldlm/services/ldlm_cbd/ Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c| 33 +++--- dri

[PATCH 42/58] staging/lustre/obdclass: Prepare for procfs to sysfs migration

2015-05-21 Thread green
From: Oleg Drokin Add necessary plumbing to register obd types and instances under /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 4 ++- drivers/staging/lustre/lustre/include/obd.h| 4 +++ drivers/staging/lustre/lustre/lmv/lmv_obd.c

[PATCH 33/58] staging/lustre: move /proc/fs/lustre/devices to debugfs

2015-05-21 Thread green
From: Oleg Drokin the devices file prints out status information about all obd devices in the system in human readable form. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 7 +-- 1 file changed, 1 insertion(+), 6 d

[PATCH 35/58] staging/lustre/ptlrpc: move procfs threads* files to sysfs

2015-05-21 Thread green
From: Oleg Drokin Move ptlrpc service threads_min, threads_max and threads_running entries from procfs to sysfs. Currently in use only by ldlm callback service only in /sys/fs/lustre/ldlm/services/ldlm_cbd/ Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c| 80

[PATCH 30/58] staging/lustre/ldlm: Add infrastructure to move ldlm pool controls to sysfs

2015-05-21 Thread green
From: Oleg Drokin This adds registration of /sys/fs/lustre/ldlm/namespaces/.../pool dir. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_dlm.h | 4 ++ drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 45 +- 2 files changed, 47 insertions(+),

[PATCH 49/58] staging/lustre/lmv: Move suitable entries from procfs to sysfs

2015-05-21 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd.h | 2 +- drivers/staging/lustre/lustre/lmv/lmv_obd.c | 60 - drivers/staging/lustre/lustre/lmv/lproc_lmv.c | 92 ++- drivers/staging/lustre/sysfs-fs-lustre

[PATCH 47/58] staging/lustre/osc: move suitable values from procfs to sysfs

2015-05-21 Thread green
From: Oleg Drokin All single-value controls are moved from /proc/fs/lustre/osc/.../ to /sys/fs/lustre/osc/.../ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/osc/lproc_osc.c | 371 +++--- drivers/staging/lustre/sysfs-fs-lustre| 107 +++- 2 files ch

[PATCH 56/58] staging/lustre/obd: remove unused lprocfs_exp_setup() and related functions

2015-05-21 Thread green
From: Oleg Drokin This code only made sense on servers. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 2 - drivers/staging/lustre/lustre/include/obd.h| 1 - .../lustre/lustre/obdclass/lprocfs_status.c| 183

[PATCH 45/58] drivers/staging/llite: Move all remaining procfs entries to debugfs

2015-05-21 Thread green
From: Oleg Drokin This moves all remaining procfs handling in llite layer to debugfs. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 27 +++- drivers/staging/lustre/lustre/llite/llite_lib.c| 13 +++--- drivers/stagi

[PATCH 51/58] staging/lustre/fid: move all files from procfs to debugfs

2015-05-21 Thread green
From: Dmitry Eremin Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/fid/fid_internal.h | 6 +-- drivers/staging/lustre/lustre/fid/fid_request.c| 63 +- drivers/staging/lustre/lustre/fid/lproc_fid.c | 49 + drivers/staging/lustre/lus

[PATCH 48/58] staging/lustre/lov: Move suitable variables from procfs to sysfs

2015-05-21 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd.h | 2 ++ drivers/staging/lustre/lustre/lov/lov_obd.c | 44 ++- drivers/staging/lustre/lustre/lov/lproc_lov.c | 39 +++- drivers/staging/lustre/sysfs-fs-lu

[PATCH 58/58] staging/lustre/obd: final removal of procfs stuff

2015-05-21 Thread green
From: Dmitry Eremin Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- .../lustre/include/linux/libcfs/linux/libcfs.h | 1 - drivers/staging/lustre/lustre/fid/Makefile | 3 +- drivers/staging/lustre/lustre/fld/Makefile | 3 +- drivers/staging/lustre/lustre/in

[PATCH 40/58] stagng/lustre/obdclass: Remove unused function lprocfs_rd_num_exports

2015-05-21 Thread green
From: Oleg Drokin This function is unused in client code. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 1 - drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 10 -- 2 files changed, 11 deletions(-) diff --git a/drivers/staging/lustr

[PATCH] staging/lustre: Update header license for lustre_dlm_flags.h

2015-05-29 Thread green
From: Oleg Drokin lustre_dlm_flags.h was autogenerated with a wrong script that mistakenly stated it is GPLv3 when in fact it should be GPLv2. Also since we are no longer autogenerating this header, drop all such mentionings. Reported by: George G. Davis Signed-off-by: Oleg Drokin Intel-bug-

[PATCH 2/6] staging/lustre/obd: remove unused proc_lustre_root

2015-05-30 Thread green
From: Dmitry Eremin Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 3 --- .../lustre/lustre/obdclass/linux/linux-module.c| 18 -- 2 files changed, 21 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lprocfs_stat

[PATCH 0/6] Final part of lustre procfs removal series

2015-05-30 Thread green
From: Oleg Drokin Due to a patch naming error this remainder of patches did not merge. Fixed the commit message to resolve this. lustresysctl code still stays in place and would be removed in a separate patch series. Additionally resolved a merge conflict with some other patch that touched lproc

[PATCH 1/6] staging/lustre/llite: Move all remaining procfs entries to debugfs

2015-05-30 Thread green
From: Oleg Drokin This moves all remaining procfs handling in llite layer to debugfs. Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 27 +++- drivers/staging/lustre/lustre/llite/llite_lib.c| 13 +++--- drivers/stagi

  1   2   3   4   5   6   7   8   >