[PATCH 090/124] staging: lustre: obdclass: change cl_fault_io->ft_nob to size_t

2016-09-18 Thread James Simmons
From: Dmitry Eremin Change the type accordant usage. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577 Reviewed-on: http://review.whamcloud.com/12380 Reviewed-by: John L. Hammond Reviewed-by: James Simmons Reviewed-by: Oleg Drokin Signed-off-by: James Simm

[PATCH 072/124] staging: lustre: echo: replace lov_stripe_md with lov_oinfo

2016-09-18 Thread James Simmons
From: John L. Hammond In echo_client replace uses of struct lov_stripe_md with struct lov_oinfo (since the instances of the former really only contained a single instance of the latter). Remove the then unneccessary functions echo_alloc_memmd(), echo_free_memmd(), osc_unpackmd(), and obd_alloc_me

[PATCH 095/124] staging: lustre: ptlrpc: fix race between connect vs resend

2016-09-18 Thread James Simmons
From: Alexander Boyko Buggy code at ptlrpc_connect_interpret() finish: rc = ptlrpc_import_recovery_state_machine(imp); ... Set import connection flags When import has FULL state ptlrpc_import_recovery_state_machine() wakeup all waiters on import and all delayed request, which was rese

[PATCH 026/124] staging: lustre: statahead: statahead thread wait for RPCs to finish

2016-09-18 Thread James Simmons
From: Lai Siyao Statahead thread should wait for inflight stat RPCs to finish in case statahead RPC callback may access data allocated in statahead thread context. ll_sa_entry_fini() should keep old entry if stat RPC is not finished yet. Simplify sai refcounting: * newly allocated sai will hold

[PATCH 087/124] staging: lustre: ptlrpc: Suppress error message when imp_sec is freed

2016-09-18 Thread James Simmons
From: Amir Shehata There is a race condition on client reconnect when the import is being destroyed. Some outstanding client bound requests are being processed when the imp_sec has alread been freed. Ensure to suppress the error message in import_sec_validate_get() in that case Signed-off-by: A

[PATCH 076/124] staging: lustre: ldlm: revert the changes for lock canceling policy

2016-09-18 Thread James Simmons
From: Jinshan Xiong The changes for LRU lock policy was introduced by commit bfae5a4e, where I was trying to revise the policy to pick locks for canceling. However, this caused two problems as mentioned in LU-5727. The first problem is that the lock can only be picked for canceling only if the n

[PATCH 094/124] staging: lustre: lov: flatten struct lov_stripe_md

2016-09-18 Thread James Simmons
From: John L. Hammond Flatten out the lsm_wire struct from the middle of struct lov_stripe_md and remove the member name macros. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5814 Reviewed-on: http://review.whamcloud.com/12581 Reviewed-by: Bobi Jam Reviewed

[PATCH 100/124] staging: lustre: obd: change type of cl_conn_count to size_t

2016-09-18 Thread James Simmons
From: Dmitry Eremin Change type of cl_conn_count to size_t. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577 Reviewed-on: http://review.whamcloud.com/13125 Reviewed-by: James Simmons Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: Jam

[PATCH 102/124] staging: lustre: remove lustre/include/linux/

2016-09-18 Thread James Simmons
From: John L. Hammond Merge the contents of lustre/include/linux/lvfs.h into lustre/include/lvfs.h. Merge lustre/include/linux/lustre_user.h into lustre/include/lustre/lustre_user.h. Move lustre_compat25.h and lustre_patchless_compat.h from lustre/include/linux/ to lustre/include/ and rename lust

[PATCH 109/124] staging: lustre: misc: remove unnecessary EXPORT_SYMBOL

2016-09-18 Thread James Simmons
From: frank zago A lot of symbols don't need to be exported at all because they are only used in the module they belong to. Signed-off-by: frank zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5829 Reviewed-on: http://review.whamcloud.com/13321 Reviewed-by: James Simmons Reviewed-by:

[PATCH 099/124] staging: lustre: llite: unlock inode size in ll_lov_setstripe_ea_info()

2016-09-18 Thread James Simmons
From: John L. Hammond In ll_lov_setstripe_ea_info() release the inode size lock on all appropriate exit paths. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6059 Reviewed-on: http://review.whamcloud.com/13167 Reviewed-by: Jinshan Xiong Reviewed-by: Andreas

[PATCH 045/124] staging: lustre: lmv: remove dead code

2016-09-18 Thread James Simmons
From: Dmitry Eremin The member lmv_obd->server_timeout and function lmv_set_timeouts() are not used. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-991 Reviewed-on: http://review.whamcloud.com/11880 Reviewed-by: John L. Hammond Reviewed-by: James Simmons Revi

[PATCH 111/124] staging: lustre: llite: lock the inode to be migrated

2016-09-18 Thread James Simmons
From: wang di Because the inode and its connected dentries will be cleared out of the cache after migration, the inode needs to be locked during the migration. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4712 Reviewed-on: http://review.whamcloud.com/9689 Reviewed-

[PATCH 113/124] staging: lustre: obd: use proper flags for call_usermodehelper

2016-09-18 Thread James Simmons
When a parameter is permanently changed on the MGS the MGS send a changelog packet to the proper nodes that are affected by the change. Once the nodes receive the change they then call the userland utility lctl to change its local value. When calling a userland application from the kernel you speci

[PATCH 105/124] staging: lustre: clio: pass fid for OST setattr

2016-09-18 Thread James Simmons
From: Bobi Jam Store inode's fid in cl_setattr_ost() and OSC packs this info on the wire (via lustre_set_wire_obdo) so that OST can use. NOTE: currently lu_fid::f_ver and obdo::o_parent_ver are not used on OFD device, and we use obdo::o_stripe_idx as filter_fid::ff_parent::f_ver and save it to t

[PATCH 117/124] staging: lustre: mdc: cl_default_mds_easize not refreshed

2016-09-18 Thread James Simmons
From: Ned Bass The client_obd::cl_default_mds_easize field should track the largest observed EA size advertised by the MDT, subject to a reasonable upper bound. The MDC uses cl_default_mds_easize to calculate the initial size of request buffers. The default value should be small enough to avoid

[PATCH 098/124] staging: lustre: lprocfs: cleanup stats locking code

2016-09-18 Thread James Simmons
From: Andreas Dilger Add comment blocks on lprocfs_stats_lock() and lprocfs_stats_unlock(). Move common NOPERCPU code out of the switch() statements to reduce code size and complexity, since it doesn't depend on the opc at all. Replace switch() in lprocfs_stats_unlock() with a simple if/else, si

[PATCH 096/124] staging: lustre: osc: osc_object_ast_clear() LBUG

2016-09-18 Thread James Simmons
From: Bobi Jam An OSC object could be destroyed with AGL locks waiting for granted, so we'd get rid of the osc_object_ast_clear() assertion that its dlm locks all getting granted. Signed-off-by: Bobi Jam Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6042 Reviewed-on: http://review.whamclo

[PATCH 106/124] staging: lustre: client: Fix mkdir -i 1 from DNE2 client to DNE1 server

2016-09-18 Thread James Simmons
From: Artem Blagodarenko After DNE phase 2 has been added to client it sends create request to slave MDT. DNT1-only server doesn't expect request to slave MDT from client. It expects only cross-mdt request from master MDT. Thus if DNE2 client tries to "mkdir -i 1" on DNE1 server, then LBUG happe

[PATCH 039/124] staging: lustre: remove lustre_lite.h

2016-09-18 Thread James Simmons
From: John L. Hammond Move several definition only used in lustre/llite/ to lustre/llite/llite_internal.h. Remove lustre/include/{,linux/}lustre_lite.h and fixup the missing includes in other headers that this exposes. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/bro

[PATCH 061/124] staging: lustre: obd: cleanup struct md_op_data and uses

2016-09-18 Thread James Simmons
From: John L. Hammond Make the following changes in or around struct md_op_data: * rename enum op_cli_flags to enum md_cli_flags. * Change to type of the op_flags member from __u32 to enum md_op_flags. * Remove the used but never set member op_npages. * Remove the set but never used me

[PATCH 097/124] staging: lustre: osc: change cl_extent_tax and *grants to unsigned

2016-09-18 Thread James Simmons
From: Dmitry Eremin Change the type accordant usage and remove warnings. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577 Reviewed-on: http://review.whamcloud.com/12386 Reviewed-by: James Simmons Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signe

[PATCH 091/124] staging: lustre: clio: add coo_getstripe interface

2016-09-18 Thread James Simmons
From: Bobi Jam Use cl_object_operations::coo_getstripe() to handle LL_IOC_LOV_GETSTRIPE ops. Signed-off-by: Bobi Jam Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5823 Reviewed-on: http://review.whamcloud.com/12452 Reviewed-by: John L. Hammond Reviewed-by: Jinshan Xiong Reviewed-by: Ole

[PATCH 101/124] staging: lustre: libcfs: check mask returned by cpumask_of_node

2016-09-18 Thread James Simmons
From: Liang Zhen cpumask_of_node can return NULL if NUMA node is unavailable, in this case cfs_node_to_cpumask will try to copy from NULL and cause kernel panic. Signed-off-by: Liang Zhen Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5751 Reviewed-on: http://review.whamcloud.com/13207 Rev

[PATCH 115/124] staging: lustre: mdt: add indexing option to default dir stripe

2016-09-18 Thread James Simmons
From: wang di Add indexing option to default dirstripe EA. If MDT find out the client send the create req to the wrong MDT because of default stripeEA, it will return -EREMOTE, then client will retrieve default stripeEA through xattr cache, and re-create the object. Also merged patch for LU-6341

[PATCH 112/124] staging: lustre: ptlrpc: remove unnecessary EXPORT_SYMBOL

2016-09-18 Thread James Simmons
From: frank zago A lot of symbols don't need to be exported at all because they are only used in the module they belong to. Signed-off-by: frank zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5829 Reviewed-on: http://review.whamcloud.com/12510 Reviewed-by: Dmitry Eremin Reviewed-by:

[PATCH 108/124] staging: lustre: grant: quiet message on grant waiting timeout

2016-09-18 Thread James Simmons
From: Johann Lombardi Use at_max in osc_enter_cache() to bound how long we wait for grant space before switching to synchronous I/Os. Do not print a message on the console when the timeout is hit since such long wait can be legitimate with flaky network (i.e. BRW is resent multiple times). Signe

[PATCH 120/124] staging: lustre: lnet: check if ni is in current net namespace

2016-09-18 Thread James Simmons
From: Sebastien Buisson Add new 'ni_net_ns' field to struct lnet_ni to hold a reference to original net namespace in which ni is created. In LNetDist(), check if ni was created in same net namespace as current's one. If not, assign order above 0x, to make this ni not a priority. Signed-o

[PATCH 121/124] staging: lustre: lnet: Ensure routing is turned on first time

2016-09-18 Thread James Simmons
From: Doug Oucharek In lnet_rtrpools_enable(), a mistake was made and routing was not being turned on when the rtrpools are being allocated for the first time. This patch fixes that routine so we remember to turn on routing after allocating the rtrpools. Signed-off-by: Doug Oucharek Intel-bug-

[PATCH 124/124] staging: lustre: update version to 2.6.99

2016-09-18 Thread James Simmons
With all of the the missing patches from the lustre 2.7 version merged upstream its time to update the upstream clients version. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/include/lustre_ver.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 110/124] staging: lustre: obdclass: remove unnecessary EXPORT_SYMBOL

2016-09-18 Thread James Simmons
From: frank zago A lot of symbols don't need to be exported at all because they are only used in the module they belong to. Signed-off-by: frank zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5829 Reviewed-on: http://review.whamcloud.com/13323 Reviewed-by: Jian Yu Reviewed-by: Dmitry

[PATCH 118/124] staging: lustre: lmv: fix parent FID for migration

2016-09-18 Thread James Simmons
From: wang di If the migrating directory is under striped directory, it needs to set right stripe FID for its parent. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6263 Reviewed-on: http://review.whamcloud.com/13817 Reviewed-by: John L. Hammond Reviewed-by: Andreas

[PATCH 114/124] staging: lustre: ptlrpc: prevent request timeout grow due to recovery

2016-09-18 Thread James Simmons
From: Mikhail Pershin Patch fixes the issue seen on the client with growing request timeout which occurred after the server side patch landed for LU-5079. While commit itself is correct, it reveals another issue. If request is being processed for a long time on server then client adaptive timeout

[PATCH 005/124] staging: lustre: obdclass: optimize busy loop wait

2016-09-18 Thread James Simmons
From: Alexander Zarochentsev two optimizations in the busy loop wait in class_cleanup(): (1) remove unnecessary spinlocks protecting obd_conn_inprogress access (2) replace cond_resched by more suitable yield to unconditionally yield the CPU if the condition check fails. Signed-off-by: Al

Re: [PATCH] staging: lustre: lmv: add missing function declaration

2016-09-18 Thread Arnd Bergmann
On Sunday, September 18, 2016 8:43:18 PM CEST James Simmons wrote: > > Nak. I'm not seeing this error with W=1. Also if you look > lmv_pack_md() is only used in lmv_obd.c and the function > appears early in the file before it is used, so no prototype > missing errors should happen. So it should

[PATCH 119/124] staging: lustre: lnet: potential deadlock in lnet

2016-09-18 Thread James Simmons
From: Quentin Bouget Fixes potential deadlock in LNetMDAttach Signed-off-by: Quentin Bouget Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8249 Reviewed-on: http://review.whamcloud.com/20676 Reviewed-by: Doug Oucharek Reviewed-by: James Simmons Reviewed-by: Henri Doreau Reviewed-by: Ole

[PATCH 116/124] staging: lustre: llite: make default_easize writeable in /sysfs

2016-09-18 Thread James Simmons
From: Ned Bass Allow default_easize to be tuned via /sysfs. A system administrator might want this if a rare access to widely striped files drives up the value on a filesystem where narrowly striped files are the more common case. In practice, however, this is wanted primarily to facilitate a tes

[PATCH 014/124] staging: lustre: lmv: release locks if lmv_intent_lock() fails

2016-09-18 Thread James Simmons
From: John L. Hammond In lmv_intent_lock() if we will return an error then first release any locks referenced by the intent. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5431 Reviewed-on: http://review.whamcloud.com/11319 Reviewed-by: wang di Reviewed-by:

[PATCH 122/124] staging: lustre: lnet: Enable setting per NI peer_credits

2016-09-18 Thread James Simmons
From: Doug Oucharek The code to allow peer_credits to be set per NI was originally "left inactive" because there were concerns about peer_credits interfering with the ability for IB nodes to connect to each other when peer_credits are not the same (peer_credits controls the queue depth for IB). W

[PATCH 123/124] staging: lustre: o2iblnd: Put back work queue check previously removed

2016-09-18 Thread James Simmons
From: Doug Oucharek The previous patch, http://review.whamcloud.com/21304/, removed a check needed until LU-5718 is properly addressed. With the check, LU-5718 results in an error message and a lost RDMA operation. Without it, we have memory corruption and a crash (much harder to debug). Putti

[PATCH 001/124] staging: lustre: llite: fix ll_statahead_thread() problems on failure

2016-09-18 Thread James Simmons
From: Li Xi When ll_prep_md_op_data() fails, ll_statahead_thread() does not release reference of sai and parent dentry. It does not wake up parent thread either. This patch fixes these problems. Signed-off-by: Li Xi Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5274 Reviewed-on: http://re

[PATCH 008/124] staging: lustre: obd: add rnb_ prefix to struct niobuf_remote members

2016-09-18 Thread James Simmons
From: John L. Hammond Add the prefix rnb_ to the members of struct niobuf_remote. Delete the relevant compat macros from ofd_internal.h. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5061 Reviewed-on: http://review.whamcloud.com/10452 Reviewed-by: Andreas Di

[PATCH 023/124] staging: lustre: mdc: Report D_CHANGELOG messages as D_HSM

2016-09-18 Thread James Simmons
From: Henri Doreau Removed the D_CHANGELOG pseudo-debug flag that wasn't actually defined as a usable one. Report the D_CHANGELOG messages as D_HSM ones instead since this is the primary user of these messages. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5538

[PATCH 010/124] staging: lustre: llite: add LL_LEASE_{RD,WR,UN}LCK

2016-09-18 Thread James Simmons
From: John L. Hammond Define new constants LL_LEASE_{RD,WR,UN}LCK for use as the argument to and return value from the LL_IOC_{GET,SET}_LEASE ioctls. As arguments, these contants replace the use of F_{RD,WR,UN}LCK from fcntl.h. As return values they replace the use of FMODE_{READ,WRITE} which are

[PATCH 017/124] staging: lustre: lov: adjust page bufsize after layout change

2016-09-18 Thread James Simmons
From: Jinshan Xiong Otherwise, the coh_page_bufsize keeps increasing when the file's layout keeps changing in lov_init_raid0(). Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5459 Reviewed-on: http://review.whamcloud.com/11394 Reviewed-by: frank zago Reviewed-

[PATCH 035/124] staging: lustre: llite: style cleanup for ll_mkdir

2016-09-18 Thread James Simmons
From: John L. Hammond Style cleanup to make the code readable. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/10769 Reviewed-by: Yang Sheng Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin Signed-off-by: James S

[PATCH 022/124] staging: lustre: llog: add newly opened llog at tail of handle list

2016-09-18 Thread James Simmons
From: Li Xi Add newly opened llog handle at the tail of handle list to increase lookup speed, especially for cancel operation, because the canceled log will be removed from the list, and lookup is from the beginning. Signed-off-by: Lai Siyao Signed-off-by: Li Xi Intel-bug-id: https://jira.hpdd

[PATCH 020/124] staging: lustre: lmv: release request in lmv_revalidate_slaves()

2016-09-18 Thread James Simmons
From: John L. Hammond In lmv_revalidate_slaves() ensure that the request returned by md_intent_lock() is properly released on all paths. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5452 Reviewed-on: http://review.whamcloud.com/11326 Reviewed-by: wang di R

[PATCH 043/124] staging: lustre: lmv: change type of lmv_obd->tgts_size to u32

2016-09-18 Thread James Simmons
From: Dmitry Eremin tgts_size is used as unsigned. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577 Reviewed-on: http://review.whamcloud.com/11881 Reviewed-by: Fan Yong Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --

[PATCH 048/124] staging: lustre: Flexible changelog format.

2016-09-18 Thread James Simmons
From: Henri Doreau Added jobid fields to Changelog records (and extended records). The CLF_JOBID flags allows to check if the field is present or not (old format) when reading an entry. Jobids are expressed as 32 chars long, zero-terminated strings. Updated test_205 in sanity.sh. Signed-off-by:

Re: [PATCH] staging: lustre: lmv: add missing function declaration

2016-09-18 Thread James Simmons
> On Sunday, September 18, 2016 8:43:18 PM CEST James Simmons wrote: > > > > Nak. I'm not seeing this error with W=1. Also if you look > > lmv_pack_md() is only used in lmv_obd.c and the function > > appears early in the file before it is used, so no prototype > > missing errors should happen. >

[PATCH 107/124] staging: lustre: lmv: Do not revalidate stripes with master lock

2016-09-18 Thread James Simmons
From: wang di Do not revalidate slave stripes while holding master lock. Otherwise if the revalidating slaves are blocked, then the master lock can not be released in time. Remove some unnecesary merging in ll_revalidate_slave(), and the attributes will be stored in each stripe, only merging the

[PATCH 104/124] staging: lustre: clio: rename coo_attr_set to coo_attr_update

2016-09-18 Thread James Simmons
From: Bobi Jam coo_attr_set() is used to update object's attribute but its name makes confusion that people intuitively think that it is used to pass object's attribute down to server sides. Signed-off-by: Bobi Jam Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1154 Reviewed-on: http://rev

[PATCH 103/124] staging: lustre: llite: pack suppgid to MDS correctly

2016-09-18 Thread James Simmons
From: Fan Yong The ll_lookup_it() may trigger IT_OPEN RPC to open a file by name. But at that time, the client does not know the target file's GID, so it cannot pack the necessary supplementary group ID in the RPC. Because of missing the supplementary group ID, the RPC maybe fail for open permiss

[PATCH v2] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-18 Thread Nayeemahmed Badebade
Added __acquires / __releases sparse locking annotations to lock_res_and_lock() and unlock_res_and_lock() functions in l_lock.c, to fix below sparse warnings: l_lock.c:47:22: warning: context imbalance in 'lock_res_and_lock' - wrong count at exit l_lock.c:61:6: warning: context imbalance in 'unlo

Re: [PATCH v2] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-18 Thread Dilger, Andreas
> On Sep 18, 2016, at 23:18, Nayeemahmed Badebade > wrote: > > Added __acquires / __releases sparse locking annotations > to lock_res_and_lock() and unlock_res_and_lock() functions > in l_lock.c, to fix below sparse warnings: > > l_lock.c:47:22: warning: context imbalance in 'lock_res_and_lock

Re: [PATCH 112/124] staging: lustre: ptlrpc: remove unnecessary EXPORT_SYMBOL

2016-09-18 Thread kbuild test robot
Hi frank, [auto build test ERROR on staging/staging-testing] [cannot apply to v4.8-rc7 next-20160916] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record wh

<    1   2