[PATCH 21/56] staging/lustre: Get rid of ldlm_ns_type_t typedef

2016-02-22 Thread green
From: Oleg Drokin Replace it with enum ldlm_ns_type Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_dlm.h | 6 +++--- drivers/staging/lustre/lustre/ldlm/ldlm_lib.c | 2 +- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 4 ++-- 3 files changed, 6 insertion

[PATCH 17/56] staging/lustre: Get rid of lustre_fid typedef

2016-02-22 Thread green
From: Oleg Drokin Replace it with struct lu_fid Signed-off-by: Oleg Drokin --- .../lustre/lustre/include/lustre/lustre_idl.h | 2 +- .../lustre/lustre/include/lustre/lustre_user.h | 24 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/st

[PATCH 43/56] staging/lustre/fld: Adjust comments to better conform to coding style

2016-02-22 Thread green
From: Oleg Drokin This patch fixes "Block comments use a trailing */ on a separate line" warnings from checkpatch. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fld/fld_cache.c| 9 ++--- drivers/staging/lustre/lustre/fld/fld_internal.h | 24 dri

[PATCH 28/56] staging/lustre: Remove server-only values from enum lu_dirent_attrs

2016-02-22 Thread green
From: Oleg Drokin These values cannot be seen on the client so we probably should not even be aware of them on the client. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre/lustre_idl.h| 16 1 file changed, 16 deletions(-) diff --git a/drivers/stagin

[PATCH 24/56] staging/lustre: Remove lustre_build_version.h

2016-02-22 Thread green
From: Oleg Drokin of the two macroses is contained the LUSTRE_RELEASE was unused and BUILD_VERSION is too generically named and was replaced with LUSTRE_VERSION_STRING with all the users (provided by lustre_ver.h) With in-kernel client the build version should be combined with kernel build infor

[PATCH 39/56] staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.

2016-02-22 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c index bbe6ebf..ba65fc0 100644 --- a/drivers/staging/lustre/lu

[PATCH 46/56] staging/lustre/ldlm: Adjust comments to better conform to coding style

2016-02-22 Thread green
From: Oleg Drokin This patch fixes "Block comments use a trailing */ on a separate line" warnings from checkpatch. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/interval_tree.c | 6 +- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 12 +- drivers/staging/lustre/lus

[PATCH 26/56] staging/lustre: Remove server-side changelog defines

2016-02-22 Thread green
From: Oleg Drokin CHANGELOG_MAGIC, CHANGELOG_MINMASK, CHANGELOG_ALLMASK, CHANGELOG_DEFMASK and CHANGELOG_USER_PREFIX are all unused on the client. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre/lustre_idl.h | 11 --- 1 file changed, 11 deletions(-) diff --

[PATCH 47/56] staging/lustre/llite: Adjust comments to better conform to coding style

2016-02-22 Thread green
li_och_mutex); it->it_create_mode |= M_CHECK_STALE; rc = ll_intent_file_open(file->f_path.dentry, NULL, 0, it); @@ -654,9 +667,11 @@ restart: /* md_intent_lock() didn't get a request ref if there was an * ope

[PATCH 53/56] staging/lustre/obdecho: Adjust comments to better conform to coding style

2016-02-22 Thread green
From: Oleg Drokin This patch fixes "Block comments use a trailing */ on a separate line" warnings from checkpatch Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdecho/echo_client.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lust

[PATCH 56/56] staging/lustre: Fix indentation mistakes

2016-02-22 Thread green
From: Oleg Drokin none look like bugs or bugs-inducing, mostly just off by a couple of spaces all around. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 2 +- .../lustre/lustre/include/lustre/lustre_idl.h | 8 ++-- .../lustre/lustre/include/lustre/lu

[PATCH 52/56] staging/lustre/obdclass: Adjust comments to better conform to coding style

2016-02-22 Thread green
From: Oleg Drokin This patch fixes "Block comments use a trailing */ on a separate line" warnings from checkpatch Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/cl_io.c | 13 +++-- drivers/staging/lustre/lustre/obdclass/cl_lock.c | 24 +--- drivers/staging/lust

[PATCH 55/56] staging/lustre/ptlrpc: Adjust comments to better conform to coding style

2016-02-22 Thread green
From: Oleg Drokin This patch fixes "Block comments use a trailing */ on a separate line" warnings from checkpatch Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ptlrpc/connection.c | 3 +- drivers/staging/lustre/lustre/ptlrpc/events.c | 51 ++--- drivers/staging/lust

[PATCH 54/56] staging/lustre/osc: Adjust comments to better conform to coding style

2016-02-22 Thread green
From: Oleg Drokin This patch fixes "Block comments use a trailing */ on a separate line" warnings from checkpatch Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/osc/osc_cache.c | 168 ++--- .../staging/lustre/lustre/osc/osc_cl_internal.h| 33 ++-- driver

[PATCH 0/5] Few misc Lustre fixes

2016-02-10 Thread green
From: Oleg Drokin This patchset fixes some minor Lustre problems and also updates the internal version. Please consider. Oleg Drokin (5): staging/lustre/obdecho: Remove always true condition staging/lustre/obdecho: Better handle invalid create requests staging/lustre: Adjust import state

[PATCH 5/5] staging/lustre: Remove unused LUSTRE_VERSION_ALLOWED_OFFSET define

2016-02-10 Thread green
From: Oleg Drokin LUSTRE_VERSION_ALLOWED_OFFSET is only used on the server to disallow connection of old userspace clients. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_ver.h | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/sta

[PATCH 4/5] staging/lustre: Update internal client version.

2016-02-10 Thread green
From: Oleg Drokin While initial code drop was corresponding to 2.3.64, lots of different changes went in since then, and also quite a bunch of fixes, but almost none of the new features. Code-wise we are almost at 2.5.0, so let's call it 2.4.60 - this is a version that was never reached in the ac

[PATCH 1/5] staging/lustre/obdecho: Remove always true condition

2016-02-10 Thread green
From: Oleg Drokin Dan Carpenter noticed that since we already checked for (oa->o_valid & OBD_MD_FLID) == 0, that means (oa->o_valid & OBD_MD_FLID) is always true after that so no point in checking for it. Signed-off-by: Oleg Drokin Reported-by: Dan Carpenter --- drivers/staging/lustre/lustre/

[PATCH 3/5] staging/lustre: Adjust import state history output format

2016-02-10 Thread green
From: Oleg Drokin New test scripts expect spaces around state names and square brackets when parsing debugfs output, so add them to avoid false failures. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 14 +++--- 1 file changed, 7 insertions(+),

[PATCH 2/5] staging/lustre/obdecho: Better handle invalid create requests

2016-02-10 Thread green
From: Oleg Drokin When gettng an invalid create request in echo code (wrong group, or no group at all), just return an error instead of crashing. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdecho/echo_client.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-)

[PATCH] staging/lustre: Unbreak ll_prep_inode iget result check

2016-03-02 Thread green
From: Oleg Drokin commit 020ecc6f3229 ("staging: lustre: llite: Remove IS_ERR tests") managed to break one of the converted checks by losing a dereference causing the condition to be wrong and hence leading to a crash later on in case of actual error. IS_ERR_OR_NULL(*inode) got converted into !in

[PATCH 01/29] staging/lustre: Remove unused target_print_req()

2015-09-28 Thread green
From: Oleg Drokin This is a server-side request printing function, so we don't really need it on the client. Signed-off-by: Oleg Drokin Reported-by: Arnd Bergmann --- .../staging/lustre/lustre/include/lprocfs_status.h | 4 --- .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c| 30 -

[PATCH 04/29] staging/lustre: Remove unused req_capsule_server_grow

2015-09-28 Thread green
From: Oleg Drokin It's only used on the server Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../lustre/lustre/include/lustre_req_layout.h | 3 -- drivers/staging/lustre/lustre/ptlrpc/layout.c | 62 -- 2 files changed, 65 deletions(-) diff --git a/d

[PATCH 29/29] staging/lustre: Remove ccc_transient_page_* methods

2015-09-28 Thread green
From: Oleg Drokin All of them but the ccc_transient_page_prep are unused, so remove the unused ones. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lclient.h| 19 - drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 48 -- 2 files changed

[PATCH 10/29] staging/lustre: Remove unused lu_object functions.

2015-09-28 Thread green
From: Oleg Drokin Quite a bunch of them are only used on the server. lu_object_put_nocache, lu_object_invariant, lu_dev_del_linkage, lu_context_tags_update, lu_context_tags_clear, lu_session_tags_update, lu_session_tags_clear, lu_env_refill_by_tags, lu_printk_printer, lu_object_assign_fid, lu_obj

[PATCH 27/29] staging/lustre: Remove ccc_attr/conf_set()

2015-09-28 Thread green
From: Oleg Drokin These seem to be unused. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lclient.h| 4 drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 15 --- 2 files changed, 19 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/

[PATCH 16/29] staging/lustre/ptlrpc: Drop unused client code

2015-09-28 Thread green
From: Oleg Drokin These client request/import functions are not used anywhere, so drop them. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 13 --- drivers/staging/lustre/lustre/ptlrpc/client.c | 95 -- d

[PATCH 24/29] staging/lustre/fid: Remove unused struct lu_server_seq

2015-09-28 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_fid.h | 51 -- 1 file changed, 51 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre_fid.h b/drivers/staging/lustre/lustre/include/lustre_fid.h index bbe3ff8..

[PATCH 28/29] staging/lustre: Remove unused ccc_io_fini()

2015-09-28 Thread green
From: Oleg Drokin Does not appear to be used anywhere. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lclient.h| 1 - drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 7 --- 2 files changed, 8 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lc

[PATCH 26/29] staging/lustre: Remove server-only recovery-related bits

2015-09-28 Thread green
From: Oleg Drokin This patch is a first stab at trying to remove structure fields from obd_export and obd structures that are only used on the server or make sense on the server. These include tracking requests in recovery, various recovery stages, lists of recovered and not yet recovered clients

[PATCH 20/29] staging/lustre/fid: Remove server fid function declarations

2015-09-28 Thread green
From: Oleg Drokin Those functions are not present anywhere in the client code. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_fid.h | 24 -- 1 file changed, 24 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre_fid.h b/driv

[PATCH 25/29] staging/lustre/obdclass: Remove unused nid_hash

2015-09-28 Thread green
From: Oleg Drokin nid_hash is used on export to faster find clients based on their NID. There's no use for that on the client. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_export.h | 1 - drivers/staging/lustre/lustre/include/obd.h| 2 - drivers/staging/lu

[PATCH 23/29] staging/lustre/fid: Get rid of lcs_srv in lu_client_seq

2015-09-28 Thread green
From: Oleg Drokin Since we know lcs_srv is always NULL, just get rid of it completely and fix up all the code to assumee it was never there. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/fid_request.c| 48 -- drivers/staging/lustre/lustre/fid/lproc_fi

[PATCH 21/29] staging/lustre/fid: seq_client_init/fini don't need to be exported

2015-09-28 Thread green
From: Oleg Drokin In fact they could be static as they are only used inside this file, so remove EXPORT_SYMBOL and declarations. Also seq_client_init is always called with srv = NULL, so just drop this argument. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/fid_request.c

[PATCH 19/29] staging/lustre: remove lots of dead code

2015-09-28 Thread green
From: Arnd Bergmann This is a large patch to remove all dead code from obdclass and ptlrpc, purely removing functions and declarations now, so despite the size should be easy enough to verify. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../lustre/lustre/include/lustre/lustre_

[PATCH 22/29] staging/lustre/fid: Remove unused seq_client_get_seq function

2015-09-28 Thread green
From: Oleg Drokin Also while we are at it, remove seq_site_fini forward declaration as there's no such function anymore. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/fid_request.c| 51 -- drivers/staging/lustre/lustre/include/lustre_fid.h | 3 -- 2

[PATCH 18/29] staging/lustre: Drop unused obdo_from_la() and la_from_obdo()

2015-09-28 Thread green
From: Oleg Drokin They are no longer used anywhere. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/linux-obdo.c | 137 - 1 file changed, 137 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-obdo.

[PATCH 14/29] staging/lustre: Remove unused function server_name2svname()

2015-09-28 Thread green
From: Oleg Drokin All users are only in the server code Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_disk.h| 2 -- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 27 -- 2 files changed, 29 deletions(-) diff

[PATCH 17/29] staging/lustre/ptlrpc: secure wrapping code cleanup

2015-09-28 Thread green
From: Oleg Drokin Drop unused functions. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_sec.h | 20 -- drivers/staging/lustre/lustre/ptlrpc/sec.c | 116 drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c| 329 -

[PATCH 15/29] staging/lustre/obdclass: Drop unused code from obdo.c

2015-09-28 Thread green
From: Oleg Drokin These functions are not even referenced in any header files anymore. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/obdo.c | 170 -- 1 file changed, 170 deletions(-) diff --git a/drivers/staging/lustr

[PATCH 12/29] staging/lustre/obdclass: Remove unused functions from genops.c

2015-09-28 Thread green
From: Oleg Drokin These functions are mostly used on the server. class_uuid2obd, get_devices_count, class_obd_list, class_conn2obd, class_conn2cliimp, class_connected_export, obd_exports_barrier, kuc_* (kernel-userspace communications). Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --

[PATCH 11/29] staging/lustre/ldlm: Remove unused round_timeout function

2015-09-28 Thread green
From: Oleg Drokin It's not referenced anywhere anymore. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers/staging/lustre/l

[PATCH 13/29] staging/lustre: Remove unused function class_handle_hash_back()

2015-09-28 Thread green
From: Oleg Drokin No callers left. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_handles.h | 1 - drivers/staging/lustre/lustre/obdclass/lustre_handles.c | 13 - 2 files changed, 14 deletions(-) diff --git a/drivers/stagi

[PATCH 08/29] staging/lustre: Remove unused ptlrpcd_add_rqset()

2015-09-28 Thread green
From: Oleg Drokin No point in retaining it if it's unused. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 1 - drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c | 42 -- 2 files changed, 43 deletions(-) dif

[PATCH 09/29] staging/lustre: Remove unused functions and definitions from cl_object

2015-09-28 Thread green
From: Oleg Drokin cl_object_header_fini, cl_object_has_locks, cl_attr2lvb, cl_page_list_own, cl_page_list_unmap, cl_2queue_assume, cl_io_print, cl_enqueue, also cleanup extern declarations in cl_object.h Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/i

[PATCH 05/29] staging/lustre: Remove unused reply state batches code

2015-09-28 Thread green
From: Oleg Drokin rs_batch is used on the server only. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 6 +- drivers/staging/lustre/lustre/ptlrpc/service.c | 145 - 2 files changed, 1 insertion(+), 150 de

[PATCH 07/29] staging/lustre: Remove unused statfs_pack()

2015-09-28 Thread green
From: Oleg Drokin It's only used on the server. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_lib.h | 1 - drivers/staging/lustre/lustre/obdclass/statfs_pack.c | 14 -- 2 files changed, 15 deletions(-) diff --git a/drive

[PATCH 06/29] staging/lustre: Remove high-priority request callbacks

2015-09-28 Thread green
From: Oleg Drokin This function is only used on the server where real high-priority requests actually exist. This deletes ptlrpc_hpreq_handler() and ptlrpc_request_change_export() Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 3

[PATCH 02/29] staging/lustre: Remove unused lustre_acl_xattr_merge2posix()

2015-09-28 Thread green
From: Oleg Drokin Apparently this is only used only on the metadata server. Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_eacl.h| 4 - drivers/staging/lustre/lustre/obdclass/acl.c | 119 - 2 files changed, 12

[PATCH 03/29] staging/lustre/ptlrpc: Remove server-specific health checks

2015-09-28 Thread green
From: Oleg Drokin ptlrpc_service_health_check is only used on a service, so it makes no point to retain it in the client code. Also removing it's helpers: ptlrpc_svcpt_health_check and ptlrpc_nrs_req_peek_nolock Reported-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/

[PATCH 00/29] Removal of unused Lustre code

2015-09-28 Thread green
From: Oleg Drokin This set removes a bunch of lustre code that is no lonver relevant, is server specific or is otherwise unused. Please consider. More to come later. Arnd Bergmann (1): staging/lustre: remove lots of dead code Oleg Drokin (28): staging/lustre: Remove unused target_print_re

[PATCH 0/6] Lustre compat code removal

2015-07-31 Thread green
From: Oleg Drokin This is take two for the compat stuff removal. Oleg Drokin (6): staging/lustre: Drop SEEK_* definition checks staging/lustre: remove unused ll_quota_on and ll_quota_off staging/lustre: Drop FMODE_UNSIGNED_OFFSET define staging/lustre: Use hlist primitives directly sta

[PATCH 4/6] staging/lustre: Use hlist primitives directly

2015-07-31 Thread green
From: Oleg Drokin Get rid of ll_d_hlist* compat defines. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/linux/lustre_compat25.h | 9 - drivers/staging/lustre/lustre/llite/dcache.c | 3 +-- drivers/staging/lustre/lustre/llite/namei.c

[PATCH 5/6] staging/lustre: Get rid of ll_pagevec_ macros

2015-07-31 Thread green
From: Oleg Drokin They are noop anyways. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/linux/lustre_compat25.h | 5 - drivers/staging/lustre/lustre/llite/dir.c | 4 2 files changed, 9 deletions(-) diff --git a/drivers/staging/lustre/lustre/i

[PATCH 3/6] staging/lustre: Drop FMODE_UNSIGNED_OFFSET define

2015-07-31 Thread green
From: Oleg Drokin It's not really used anywhere. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/linux/lustre_compat25.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h b/drivers/staging/lustre/lustre/in

[PATCH 6/6] staging/lustre: Get rid of inode_dio_write_done and inode_dio_read

2015-07-31 Thread green
From: Oleg Drokin These primitives are long deprecated and unused. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/linux/lustre_compat25.h | 5 - drivers/staging/lustre/lustre/llite/llite_lib.c | 5 + drivers/staging/lustre/lustre/llite/vvp_io.c

[PATCH 1/6] staging/lustre: Drop SEEK_* definition checks

2015-07-31 Thread green
From: Oleg Drokin SEEK_DATA and SEEK_HOLE are always defined in the kernel, drop the definition checks Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/linux/lustre_compat25.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/li

[PATCH 2/6] staging/lustre: remove unused ll_quota_on and ll_quota_off

2015-07-31 Thread green
From: Oleg Drokin They are not used anywhere, so safe to drop. Signed-off-by: Oleg Drokin --- .../lustre/lustre/include/linux/lustre_compat25.h | 31 -- 1 file changed, 31 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h b/drivers/s

[PATCH] staging/lustre: change Lustre URLs and mailing list

2015-08-24 Thread green
From: Andreas Dilger Now that the lustre.org domain has been liberated we can again use that for the main website URL and mailing list. Also update the URL for userspace tools downloads and Git repo. Signed-off-by: Andreas Dilger Signed-off-by: Oleg Drokin --- MAINTAINERS

[PATCH 03/20] staging/lustre/ldlm: In ldlm_pools_fini make sure there was init first.

2015-07-06 Thread green
From: Oleg Drokin It turns out if you call ldlm_pools_fini without completing the ldlm_pools_init, then attempt to unregister not yet registered shrinkers makes the kernel very unhappy. So make sure we have them registered first. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldl

[PATCH 06/20] staging/lustre: Remove now obsolete memory tracking sysctls

2015-07-06 Thread green
From: Oleg Drokin In the past when Lustre did its own allocation amounts tracking the results were shown in sysctl as current and overall max number of bytes and pages allocated. Now that we don't track these, remove the sysctls. Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/

[PATCH 19/20] staging/lustre/libcfs: get rid of debugfs/lnet/console_{min,max}_delay_centisecs

2015-07-06 Thread green
From: Dmitry Eremin They are just fancy module parameters wrappers, so just the same functionality now would be accessible via /sys/module/libcfs/parameters/libcfs_console_{min,max}_delay Also install compatibility symlinks Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- drivers/

[PATCH 18/20] staging/lustre/libcfs: get rid of debugfs/lnet/debug_mb

2015-07-06 Thread green
From: Oleg Drokin It's just a fancy libcfs_debug_mb module parameter wrapper, so just add debug buffer size check and resizing and the same functionality now would be accessible via /sys/module/libcfs/parameters/libcfs_debug_mb Also add a symlink for backwards compatibility. Signed-off-by: Oleg

[PATCH 14/20] staging/lustre/libcfs: Remove redundant lnet debugfs variables

2015-07-06 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 20/20] staging/lustre/libcfs: remove unused portal_enter_debugger variable

2015-07-06 Thread green
From: Dmitry Eremin Remove portal_enter_debugger because it's not used any more. Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/libcfs/debug.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/debug.c b/drivers/staging/lustre/lustre/lib

[PATCH 13/20] staging/lustre/libcfs: move /proc/sys/lnet to debugfs

2015-07-06 Thread green
From: Oleg Drokin Parameters in lnet sysctl are of debug quantity, so let's move them to debugfs instead. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/libcfs/module.c | 86 +-- 1 file changed, 56 insertions(+), 30 deletions(-) diff --git a/drivers/stagi

[PATCH 17/20] staging/lustre/libcfs: Remove unneeded lnet watchdog_ratelimit sysctl

2015-07-06 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 16/20] staging/lustre/libcfs: Remove redundant enums and sysctl moduleparams

2015-07-06 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 12/20] staging/lustre: Get rid of remaining /proc/sys/lustre plumbing

2015-07-06 Thread green
From: Oleg Drokin Since all of the variables from /proc/sys/lustre were moved to /sys/fs/lustre, get rid of the remaining infrastructure. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_class.h | 1 - drivers/staging/lustre/lustre/obdclass/class_obd.c | 1 - .../lus

[PATCH 07/20] staging/lustre: Remove unneeded ldlm_timeout control

2015-07-06 Thread green
From: Oleg Drokin ldlm_timeout is used server-side to determine AST timeouts, so it makes no sense on the client, esp. since it's not really used anywhere. Remove all traces of it except from the config where make it a noop. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/

[PATCH 15/20] staging/lustre/libcfs: get rid of debugfs/lnet/console_backoff

2015-07-06 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. Also add a symlink to the module parameter variable for backwards compat

[PATCH 10/20] staging/lustre/obdclass: move debug controls to sysfs

2015-07-06 Thread green
From: Oleg Drokin debug_peer_on_timeout, dump_on_timeout and dump_on_eviction controls from /proc/sys/lustre to /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/linux-sysctl.c| 28 ++ drivers/staging/lustre/sysfs-fs-lustre | 26

[PATCH 08/20] staging/lustre/obdclass: move sysctl timeout to sysfs

2015-07-06 Thread green
From: Oleg Drokin This is the first step of moving lustre sysctls from /proc/sys/lustre to /sys/fs/lustre Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_class.h | 4 +- drivers/staging/lustre/lustre/obdclass/class_obd.c | 6 +- .../lustre/lustre/obdclass/linux/linu

[PATCH 01/20] staging/lustre/lov: Move target sysfs symlink removal to object freeing

2015-07-06 Thread green
From: Oleg Drokin This helps to avoid use after free on unmount. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/lov/lov_obd.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_obd.c b/drivers/staging/lustre/lustre/lo

[PATCH 09/20] staging/lustre/obdclass: move max_dirty_mb from sysctl to sysfs

2015-07-06 Thread green
From: Oleg Drokin max_dirty_mb is now a parameter in /sys/fs/lustre/ Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/linux-sysctl.c| 74 +- drivers/staging/lustre/sysfs-fs-lustre | 12 2 files changed, 43 insertions(+), 43 deletions(-)

[PATCH 11/20] staging/lustre/obdclass: Move AT controls from sysctl to sysfs

2015-07-06 Thread green
From: Oleg Drokin Adaptive Timeouts controls are being moved from /proc/sys/lustre to /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/linux-sysctl.c| 45 -- drivers/staging/lustre/sysfs-fs-lustre | 53 ++ 2 file

[PATCH 05/20] staging/lustre: remove alloc_fail_rate sysctl

2015-07-06 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 04/20] staging/lustre/obdclass: fix class_procfs_init error return value

2015-07-06 Thread green
From: Oleg Drokin Dan Carpenter noticed that procfs conversion patches introduced a bug where should kobject_create_and_add, an error is not returned from class_procfs_init. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 2 +- 1 file changed, 1 ins

[PATCH 00/20] Lustre: final procfs bits removal.

2015-07-06 Thread green
From: Oleg Drokin This patch series removes the sysctls (also under /proc) from Lustre. /proc/sys/lnet is moved to debugfs and /proc/sys/lustre content is moved to /sys/fs/lustre Additionally we now have the tools that understand the new layout, and so first few patches fix problems introduced b

[PATCH 02/20] staging/lustre: make ldebugfs_remove recursive

2015-07-06 Thread green
From: Oleg Drokin ldebugfs_remove is usually called on directories with files passed in as attributes, so simple debugfs_remove failes on them as not empty Switch to debugfs_remove_recursive. This fixes a number of problems where a new filesystem is mounted after being unmounted first. Signed-o

[PATCH 4/4] staging/lustre/libcfs: Fix kstrtouint return value check fix

2015-07-13 Thread green
From: Oleg Drokin Apparently kstrtouint could return not just -EINVAL, but also -ERANGE, so make sure we just check the return value for something negative. Noticed by Dan Carpenter Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/libcfs/debug.c | 2 +- 1 file changed, 1 insertio

[PATCH 2/4] staging/lustre/libcfs: get rid of debugfs/lnet/console_{min,max}_delay_centisecs

2015-07-13 Thread green
From: Dmitry Eremin They are just fancy module parameters wrappers, so just the same functionality now would be accessible via /sys/module/libcfs/parameters/libcfs_console_{min,max}_delay Also install compatibility symlinks Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin --- drivers/

[PATCH 3/4] staging/lustre/libcfs: remove unused portal_enter_debugger variable

2015-07-13 Thread green
From: Dmitry Eremin Remove portal_enter_debugger because it's not used any more. Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/lustre/libcfs/debug.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/debug.c b/drivers/staging/lustre/lustre/lib

[PATCH 0/4] Lustre: remaining bits of sysctl debugfs migration

2015-07-13 Thread green
From: Oleg Drokin Rediffed the last few patches as per Greg's instructions. Also Added a folow on fix for the uint_min_max param to properly take into account kstrtouint range of error return values. Please consider. Dmitry Eremin (2): staging/lustre/libcfs: get rid of debugfs/lnet/consol

[PATCH 1/4] staging/lustre/libcfs: get rid of debugfs/lnet/debug_mb

2015-07-13 Thread green
From: Oleg Drokin It's just a fancy libcfs_debug_mb module parameter wrapper, so just add debug buffer size check and resizing and the same functionality now would be accessible via /sys/module/libcfs/parameters/libcfs_debug_mb Also add a symlink for backwards compatibility. Signed-off-by: Oleg

[PATCH] staging/lustre/ldlm: Unregister ldlm namespace from sysfs on free

2015-07-15 Thread green
From: Oleg Drokin ldlm_namespace_sysfs_unregister needs to be called ldlm_namespace_free_post so that we don't have this dangling object there after the namespace has disappeared. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 1 + 1 file changed, 1 inserti

[PATCH] acpi/ec: Deny write access unless requested by module param

2016-02-05 Thread green
From: Oleg Drokin In debugfs it's not enough to just set file mode to read-only to deny write access to a file, instead just don't provide the write method unless write access is really requested. Signed-off-by: Oleg Drokin --- I assume allowing run-time changes via /sys/module is preferrable,

[PATCH] staging/lustre/lnet: Don't call roundup_pow_of_two on zero in LNetEQAlloc

2016-02-05 Thread green
From: Oleg Drokin roundup_pow_of_two return when called on a zero argument is undefined, so don't call it like that. This fixes a problem introduced by commit 322489d9d551 ("staging/lustre: Use roundup_pow_of_two() in LNetEQAlloc()") since 0 is a valid count parameter for LNetEQAlloc. Also manif

[PATCH 1/2] staging/lustre/libcfs: Properly handle debugfs read- and write-only files

2016-02-05 Thread green
From: Oleg Drokin It turns out that unlike procfs, debugfs does not really enforce permissions for root (similar to regular filesystems), so we need to ensure we are not providing ->write() method to read-only files and ->read() method for write-only files at registration. This fixes a couple of

[PATCH 0/2] Lustre debugfs fixes

2016-02-05 Thread green
From: Oleg Drokin These two patches tie some loose ends from the Lustre debugfs conversion, but while investigating them I also accumulated some questions that would be good to get answers for. 1. Unlike procfs, debugfs does not really guard your back and if root comes in and tries to write to a

[PATCH 2/2] staging/lustre/obdclass: export debugfs functionality for GPL only.

2016-02-05 Thread green
From: Oleg Drokin Turns out we mistakenly export some pretty-wide-reaching debugfs functions as EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL as we should, so this patch rectifies the situation. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/obdclass/lprocfs_status.c| 18 +--

[PATCH] drm: Export debugfs functionality for GPL code only

2016-02-07 Thread green
From: Oleg Drokin drm_debugfs_create_files and drm_debugfs_remove_files should only be available for GPL-code only as per Greg-KH Signed-off-by: Oleg Drokin --- drivers/gpu/drm/drm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs.c b

Re: [RFC] Energy/power monitoring within the kernel

2012-10-23 Thread Andy Green
s could make some sense. If you turn the problem upside down to solve the representation question first, maybe there's a way forward defining the "power tree" in terms of regulators, and then adding something in struct regulator that spams readers with timestamped results if the

3.10-rc6 "perf test" seems unhappy

2013-06-26 Thread Andy Green
Hi - Running perf test on 3.10-rc6 gives some unexpected behaviours. This is on a dual Cortex A9 board with perf userland cross-built from same tree as the kernel. root@aa9-eb:~# perf test 1: vmlinux symtab matches kallsyms: FAILED! 2: detect open syscall event

Re: 3.10-rc6 "perf test" seems unhappy

2013-06-27 Thread Andy Green
On 26 June 2013 21:39, Prabhat Kumar Ravi wrote: > Hi, > > On Wed, Jun 26, 2013 at 4:39 PM, Andy Green wrote: >> Hi - >> >> Running perf test on 3.10-rc6 gives some unexpected behaviours. >> >> This is on a dual Cortex A9 board with perf userland cros

[PATCH] warning-elimination: android: binder

2013-08-05 Thread Andy Green
From: Andy Green warning-elimination: android: binder This commit in mainline (now) causes a couple of warnings commit 975a1ac9a9fe65d66ee1726c0db6dc58e53d232a Author: Arve Hjønnevåg Date: Tue Oct 16 15:29:53 2012 -0700 Staging: android: binder: Add some tracepoints This patch fixes

Re: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-04-23 Thread Andy Green
up of the PRCMU code and on the multiplatform support for OMAP with mailbox enabled. We can definitely collaborate on the improvements. Andy Green would also be interested, as he is also looking into adopting the mailbox API. To clarify Jassi works on my team, after I wrote two Mailbox drivers for

Re: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-04-25 Thread Andy Green
op to mediate, Jassi is suggesting being able to do the client locking at your layer as a primitive will simplify things, not least get rid of the mediation driver. Your layer has concept of completion and notifier already so it seems it wouldn't take much more. -Andy -- Andy Green | Fujit

Re: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-04-26 Thread Andy Green
ailbox usage. At least, this real scenario should be interesting to think about before rejecting ^^ -Andy -- Andy Green | Fujitsu Landing Team Leader Linaro.org │ Open source software for ARM SoCs | Follow Linaro http://facebook.com/pages/Linaro/155974581091106 - http://twitter.com/#!/linaro

Can't get driver to work: D-Link DFE-570TX (de4x5.o) on Linux 2.4

2001-03-13 Thread Avi Green
iled into the kernel. I've downloaded the latest Tulip driver but haven't tried it yet. * I've spent many hours trying to get this to work, and my manager is getting desparate. Do you have any ideas? Thank you VERY, VERY much, Avi ==

<    1   2   3   4   5   6   7   8   9   10   >