[PATCH] staging: dgnc: fix 'line over 80 characters'

2016-08-16 Thread Anson Jacob
fix checkpatch.pl warning about 'line over 80 characters'. Signed-off-by: Anson Jacob --- drivers/staging/dgnc/dgnc_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h

[PATCH] staging: lustre: fix checkpatch error

2016-08-16 Thread Anson Jacob
convert spaces to tab fix the following error messages from checkpatch.pl ERROR: code indent should use tabs where possible WARNING: please, no spaces at the start of a line Signed-off-by: Anson Jacob --- drivers/staging/lustre/lustre/include/cl_object.h | 2 +- 1

Re: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Vitaly Kuznetsov
"Alex Ng (LIS)" writes: >> @@ -676,35 +686,63 @@ static void hv_mem_hot_add(unsigned long start, >> unsigned long size, >> >> static void hv_online_page(struct page *pg) { >> -struct list_head *cur; >> struct hv_hotadd_state *has; >> +struct hv_hotadd_gap

Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

2016-08-16 Thread Greg Kroah-Hartman
On Mon, Aug 15, 2016 at 02:14:18PM -0700, Joe Perches wrote: > On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote: > > On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote: > > > Start to rationalize include paths in source code files. > [] > > > diff --git

Re: [PATCH 2/9] staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue

2016-08-16 Thread Christian Gromm
On Mon, 15 Aug 2016 20:39:38 +0200 Greg KH wrote: > On Mon, Jul 18, 2016 at 05:25:28PM +0200, Christian Gromm wrote: > > The "broken in pipe" handler of the USB-HDM calls most_stop_enqueue() to > > stop the MBO traffic before returning all MBOs back to the Mostcore.

Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

2016-08-16 Thread Joe Perches
On Tue, 2016-08-16 at 12:53 +0200, Greg Kroah-Hartman wrote: > On Mon, Aug 15, 2016 at 02:14:18PM -0700, Joe Perches wrote: > > On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote: > > > On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote: > > > > Start to rationalize include paths

[PATCH 29/80] staging: lustre: lmv: lookup remote migrating object in LMV

2016-08-16 Thread James Simmons
From: wang di If remote object is being found in a migrating directory, it should continue to lookup the object in remote MDT, instead of return. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4805 Reviewed-on:

[PATCH 17/80] staging: lustre: add ability to migrate inodes.

2016-08-16 Thread James Simmons
From: wang di Add client support to migrate the individual inodes from one MDT to another MDT, and this functionality will only migrate inode layout on MDT but not touch data object on OST. The directory will be migrated from top to the bottom, i.e. migrating parent first,

[PATCH 19/80] staging: lustre: libcfs: Only dump log once per sec. to avoid EEXIST

2016-08-16 Thread James Simmons
From: Ryan Haasken Since the log file name contains the current time in seconds, dumping the logs more than once per second causes EEXIST errors to be emitted. Add a static variable to libcfs_debug_dumplog_internal that records the time of the last Lustre log dump. If the

[PATCH 51/80] staging: lustre: lmv: Match MDT where the FID locates first

2016-08-16 Thread James Simmons
From: wang di With DNE every object can have two locks in different namespaces: lookup lock in space of MDT storing direntry and update/open lock in space of MDT storing inode. In lmv_find_cbdata/lmv_lock_lock, it should try the MDT that the FID maps to first, since this can

[PATCH 38/80] staging: lustre: move ioctls to lustre_ioctl.h

2016-08-16 Thread James Simmons
From: John L. Hammond Move ioctl definitions and related functions from lustre_dlm.h, lustre_lib.h, obd.h, to lustre_ioctl.h. Replace the definitions of retired ioctls with comment. Signed-off-by: John L. Hammond Intel-bug-id:

[PATCH 44/80] staging: lustre: Remove static declaration in anonymous union

2016-08-16 Thread James Simmons
From: Christopher J. Morrone It is not permitted in C++ to have a static declaration inside of an anonymous union. The g++ compiler will complaine with an error like this: error: struct ost_idostid invalid; an anonymous union can only have non-static data members

[PATCH 01/80] staging: lustre: llite: add md_op_data parameter to ll_get_dir_page

2016-08-16 Thread James Simmons
From: wang di Pass in struct md_op_data for ll_get_dir_page function. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 16/80] staging: lustre: obdclass: bug fixes for lu_device_type handling

2016-08-16 Thread James Simmons
From: Fan Yong There was no protection when inc/dec lu_device_type::ldt_device_nr, which may caused the ldt_device_nr to be wrong and trigger assert. This patch redefine lu_device_type::ldt_device_nr as atomic type. There was no protection when add/del

[PATCH 03/80] staging: lustre: llite: style cleanup for llite_internal.h

2016-08-16 Thread James Simmons
From: wang di Group function prototypes together related to dir.c. Move ll_release_page to be with function declarations. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531

[PATCH 14/80] staging: lustre: delete striped directory

2016-08-16 Thread James Simmons
From: wang di Add delete striped directory, it includes 1. enable sync log between MDTs, so slave objects will be delete by unlink log, which is similar as deleting ost object. 2. retrieve layout information of striped directory on MDT, then lock all of the slave

[PATCH 28/80] staging: lustre: lmv: access lum_stripe_offset as little endian

2016-08-16 Thread James Simmons
From: John L. Hammond By the time that a struct lmv_user_md reaches lmv_placement_policy() it has already been converted to little endian. Therefore use the appropriate macros around accesses to this this field. This issue was found by rewriting the definition of struct

[PATCH 11/80] staging: lustre: lmv: replace obd_free_memmd with lmv_free_memmd

2016-08-16 Thread James Simmons
From: wang di Use lmv_free_memmd for proper cleanup instead of the generic obd_free_memmd. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 07/80] staging: lustre: lmv: remove unused lmv_get_mea function

2016-08-16 Thread James Simmons
From: wang di The function lmv_get_mea() is not used so remove it. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 15/80] staging: lustre: obdclass: fix lmd_parse() to handle comma-separated NIDs

2016-08-16 Thread James Simmons
From: Jian Yu This patch handles the upgrade situation that old mountdata already contains comma-separated NIDs. The correct way to fix the original issue is to parse comma-separated NIDs in lmd_parse(). Signed-off-by: Jian Yu Intel-bug-id:

[PATCH 18/80] staging: lustre: lmv: fix issue found by Klocwork Insight tool

2016-08-16 Thread James Simmons
From: Dmitry Eremin 'plock.cookie' might be used uninitialized in this function. sscanf format specification '%d' expects type 'int *' for 'd', but parameter 3 has a different type '__u32*' Signed-off-by: Dmitry Eremin Intel-bug-id:

[PATCH 35/80] staging: lustre: obdclass: unified flow control interfaces

2016-08-16 Thread James Simmons
From: Fan Yong Unify the flow control interfaces for MDC RPC and FLD RPC. We allow to adjust the maximum inflight RPCs count via /sys interface. Signed-off-by: Fan Yong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4687 Reviewed-on:

[PATCH 25/80] staging: lustre: const correct FID/OSTID/... helpers

2016-08-16 Thread James Simmons
From: John L. Hammond Add a const qualifier wherever possible to the pointer parameters of the inline helper functions in lustre_idl.h and lustre_fid.h. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675

[PATCH 40/80] staging: lustre: ptlrpc: Early replies need to honor at_max

2016-08-16 Thread James Simmons
From: Chris Horn When determining whether an early reply can be sent the server will calculate the new deadline based on an offset from the request arrival time. However, when actually setting the new deadline the server offsets the current time. This can result in deadlines

[PATCH 33/80] staging: lustre: lmv: cleanup req in lmv_getattr_name()

2016-08-16 Thread James Simmons
From: John L. Hammond In lmv_getattr_name() don't return a freed request in the error path. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4826 Reviewed-on: http://review.whamcloud.com/9863 Reviewed-by:

[PATCH 37/80] staging: lustre: ldlm: flock completion fixes.

2016-08-16 Thread James Simmons
From: Vitaly Fertman Move checks for FAILED, DESTROYED flags under ldlm spinlock, destroy flock atomically with the check it is not destroyed yet. Do not put the granted flock into the resource if this is UNLOCK, TEST, or DEADLOCK'ed flock. Later a regression for

[PATCH 47/80] staging: lustre: uapi: reduce scope of lustre_idl.h

2016-08-16 Thread James Simmons
From: John L. Hammond Move the definition of OBD_OCD_VERSION() and similar macros from lustre_idl.h to lustre_ver.h. These macros are primarily used in comparisons to LUSTRE_VERSION_CODE which is defined in lustre_ver.h and so should be defined there as well. Move a few

[PATCH 52/80] staging: lustre: llite: use the correct mode for striped directory

2016-08-16 Thread James Simmons
From: wang di Create striped directory with correct mode, which should be handling same as mkdir. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4929 Reviewed-on: http://review.whamcloud.com/10028 Reviewed-by: Andreas Dilger

[PATCH 50/80] staging: lustre: lov: new pattern flag for partially repaired file

2016-08-16 Thread James Simmons
From: Fan Yong When the layout LFSCK repairs orphan OST-object, if the parent MDT-object was lost, then it will re-create the MDT-object and regenerate the LOV EA and fill the target LOV EA slot with the orphan information, and fill other slots with zero (LOV hole); if

[PATCH 42/80] staging: lustre: llite: validate names

2016-08-16 Thread James Simmons
From: John L. Hammond In ll_prep_md_op_data() validate names according to the same formula used in mdd_name_check(). Add mdc_pack_name() to validate the name actually packed in the request. Signed-off-by: John L. Hammond Intel-bug-id:

[PATCH 54/80] staging: lustre: llite: set dir LOV xattr length variable

2016-08-16 Thread James Simmons
From: Hongchao Zhang the LOV xattr of directory could be either lov_user_md_v1 (size is 32) or lov_user_md_v3 (size is 48), then the actual size of the LOV xattr should be return. Signed-off-by: Hongchao Zhang Intel-bug-id:

[PATCH 53/80] staging: lustre: obd: rename lsr_padding to lsr_valid

2016-08-16 Thread James Simmons
From: Niu Yawei Simple variable rename. Signed-off-by: Niu Yawei Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4345 Reviewed-on: http://review.whamcloud.com/10223 Reviewed-by: Andreas Dilger Reviewed-by: Mike Pershin

[PATCH 43/80] staging: lustre: llite: fix inconsistencies of root squash feature

2016-08-16 Thread James Simmons
From: Gregoire Pichon Root squash exhibits inconsistent behaviour on a client when enabled. If a file is not cached on the client, then root will get a permission denied error when accessing the file. When the file has recently been accessed by a regular user and is

[PATCH 48/80] staging: lustre: llite: a few fixes about readdir of striped dir.

2016-08-16 Thread James Simmons
From: wang di Normally we know the value of op_mea1 when ll_readdir is called. In the case of '.' or '..' op_mea1 is unknown so for that case fetch the real parents FID. Signed-off-by: wang di Signed-off-by: Li Xi Intel-bug-id:

[PATCH 45/80] staging: lustre: llite: Fix the deadlock in balance_dirty_pages()

2016-08-16 Thread James Simmons
From: Jinshan Xiong If the page is already dirtied in ll_write_end() and kernel tries to call balance_dirty_pages() to write back dirty pages in the same thread, this is deadlock case if the page is already held by clio. This can also fix the issue of LU-4873.

Re: [RFCv2][PATCH 2/5] arm: Implement ARCH_HAS_FORCE_CACHE

2016-08-16 Thread Laura Abbott
On 08/10/2016 04:22 PM, Russell King - ARM Linux wrote: On Mon, Aug 08, 2016 at 10:49:34AM -0700, Laura Abbott wrote: +/* + * Make an area consistent for devices. + * Note: Drivers should NOT use this function directly, as it will break + * platforms with CONFIG_DMABOUNCE. + * Use the driver

RE: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Alex Ng (LIS)
> >> static unsigned long handle_pg_range(unsigned long pg_start, @@ - > 834,13 > >> +881,19 @@ static unsigned long process_hot_add(unsigned long > pg_start, > >>unsigned long rg_size) > >> { > >>struct hv_hotadd_state *ha_region = NULL; > >> + int

[PATCH 55/80] staging: lustre: mdt: add mbo_ prefix to members of struct mdt_body

2016-08-16 Thread James Simmons
From: John L. Hammond Rename each member of struct mdt_body, adding the prefix mbo_. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/10202 Reviewed-by: Bob Glossman

[PATCH 61/80] staging: lustre: obdclass: compile issues with variable not being initialized

2016-08-16 Thread James Simmons
One of the versions of gcc I have refuses to build obd_mount.c due to index not be initialized in function lmd_make_exclusion before it is used. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629 Reviewed-on:

[PATCH 63/80] staging: lustre: fid: do open-by-fid by default

2016-08-16 Thread James Simmons
From: Lai Siyao Currently client open-by-fid often packs name into the request, but the name may be invalid, eg. NFS export, and even if it's valid, it may cause inconsistency because this operation is done on this fid, which is globally unique, but name not. Since

[PATCH 68/80] staging: lustre: lmv: build master LMV EA dynamically build via readdir

2016-08-16 Thread James Simmons
From: Fan Yong When creating a striped directory, the master object saves the slave objects (or shards) as internal sub-directories. The sub-directory's name is composed of ${shard_FID}:${shard_idx}. With the name, we can easily to know what the shard is and where it should

[PATCH 72/80] staging: lustre: obd: validate open handle cookies

2016-08-16 Thread James Simmons
From: John L. Hammond Add a const void *h_owner member to struct portals_handle. Add a const void *owner parameter to class_handle2object() which must be matched by the h_owner member of the handle in addition to the cookie. Signed-off-by: John L. Hammond

[PATCH 59/80] staging: lustre: fld: add fld description documentation

2016-08-16 Thread James Simmons
From: Patrick Farrell Add subsystem description from Di Wang to header file. Signed-off-by: Patrick Farrell Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5153 Reviewed-on: http://review.whamcloud.com/10631 Reviewed-by: wangdi Reviewed-by:

[PATCH 62/80] staging: lustre: obd: limit lu_object cache

2016-08-16 Thread James Simmons
From: Brian Behlendorf As the LU cache grows it can consume large enough chunks of memory that ends up preventing buffers for other objects, such as the OIs, from being cached and severely impacting the performance for FID lookups. Limit the lu_object cache to a maximum of

[PATCH 75/80] staging: lustre: llite: set op_max_pages

2016-08-16 Thread James Simmons
From: wang di Cache the maximum allowed pages supported by the llite layer. This value will be used in the mdc and lmv layer. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531

[PATCH 77/80] staging: lustre: lnet: Correct position of lnet_ni_decref()

2016-08-16 Thread James Simmons
From: Doug Oucharek In fix http://review.whamcloud.com/#/c/19614/, the call to lnet_ni_decref() should have followed the routines which are using the NI. This patch correct that. Signed-off-by: Doug Oucharek Intel-bug-id:

[PATCH] staging: lustre: fix bare use of 'unsigned'

2016-08-16 Thread Anson Jacob
fix checkpatch.pl warning Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Anson Jacob --- drivers/staging/lustre/lustre/include/cl_object.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 74/80] staging: lustre: obd: implement md_read_page

2016-08-16 Thread James Simmons
From: wang di This patch adds md_read_page which is a new more flexiable api that will replace md_readpage. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906 Reviewed-by: John L.

[PATCH 73/80] staging: lustre: lmv: build error with gcc 4.7.0 20110509

2016-08-16 Thread James Simmons
From: Dmitry Eremin Fixed comparison between signed and unsigned indexes. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3775 Reviewed-on: http://review.whamcloud.com/7382 Reviewed-by: John L. Hammond

[PATCH 76/80] staging: lustre: lnet: Do not drop message when shutting down LNet

2016-08-16 Thread James Simmons
From: Doug Oucharek There is a case in lnet_parse() where we discover that LNet is shutting down but we continue to use the NI when we drop the message and end up calling ko2iblnd_check_send_locked() which tries to allocate from the Tx pool which has been cleaned up

[PATCH 70/80] staging: lustre: include: fix one off errors in lustre_id.h

2016-08-16 Thread James Simmons
During inspection of another patch Dan Carpenter noticed some one off errors in lustre_id.h. Fix the condition test for OBIF_MAX_OID. Signed-off-by: James Simmons --- .../lustre/lustre/include/lustre/lustre_idl.h |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH 1/9 RESEND] staging: most: hdm-usb: remove unused macro HW_RESYNC

2016-08-16 Thread Christian Gromm
This patch removes the macro HW_RESYNC that is not used anymore. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 2/8] staging: most: hdm-usb: assign spinlock to local variable

2016-08-16 Thread Christian Gromm
This patch assigns the spinlock of struct mdev to local spinlock_t variable to get rid of all the ugly dereferencing. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 31

[PATCH 4/8] staging: most: hdm-usb: remove completion object

2016-08-16 Thread Christian Gromm
Waiting for the urb_compl object to complete evaluates always as false. This patch removes this unnecessary completion object. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 11

[PATCH 7/8] staging: most: hdm-usb: remove unnecessary status assignment

2016-08-16 Thread Christian Gromm
The USB completion callbacks set the status field of an MBO object before scheduling the clear_work. This patch removes this redundant assignment as the work_struct does the same for all MBOs. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm

[PATCH 1/8] staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue

2016-08-16 Thread Christian Gromm
The "broken in pipe" handler of the USB-HDM calls most_stop_enqueue() to stop the MBO traffic before returning all MBOs back to the Mostcore. As the enqueue() call from the Mostcore may run in parallel with the most_stop_enqueue(), the HDM may run into the inconsistent state and crash the kernel.

[PATCH 41/80] staging: lustre: lmv: separate master object with master stripe

2016-08-16 Thread James Simmons
From: wang di Separate master stripe with master object, so 1. stripeEA only exists on master object. 2. sub-stripe object will be inserted into master object as sub-directory, and it can get the master object by "..". By this, it will remove those specilities for stripe0 in

[PATCH 49/80] staging: lustre: lmv: validate lock with correct stripe FID

2016-08-16 Thread James Simmons
From: wang di In ll_lookup_it_finish, we need use the real parent(stripe) FID to validate the parent UPDATE lock. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4925 Reviewed-on: http://review.whamcloud.com/10026 Reviewed-by:

[PATCH 39/80] staging: lustre: llite: add error handler in inode prepare phase

2016-08-16 Thread James Simmons
From: wang di Add error handler during inode inialization, so inode will become bad inode if something bad happens during inode prepare phase, otherwise the striped directory will not get its layout and being mis-regarded as normal directory. Signed-off-by: wang di

Re: [PATCH 01/15 RESEND] staging: dgnc: remove redundant NULL checks in

2016-08-16 Thread DaeSeok Youn
2016-08-16 2:05 GMT+09:00 Greg KH : > On Wed, Jul 06, 2016 at 03:11:13PM +0900, Daeseok Youn wrote: >> The dgnc_block_til_ready() is only used in dgnc_tty_open(). >> The unit data(struct un_t) was stored into tty->driver_data in >> dgnc_tty_open(). >> And also tty and

[PATCH 13/80] staging: lustre: llite: fix "getdirstripe" to show stripe info

2016-08-16 Thread James Simmons
From: wang di Fix "lfs getdirstripe", so it can show layout information of striped directory [root@testnode tests]# ../utils/lfs getdirstripe /mnt/lustre/test1 /mnt/lustre/test1 lmv_stripe_count: 2 lmv_stripe_offset: 0 mdtidx FID[seq:oid:ver] 0

[PATCH 22/80] staging: lustre: llite: a few fixes for migration.

2016-08-16 Thread James Simmons
From: wang di 1. Clear the client dentry cache before migrating file/directory to the remote MDT. 2. Do not return stripe information to client, if it did not get the layout lock. Signed-off-by: wang di Intel-bug-id:

[PATCH 27/80] staging: lustre: simplify inline functions in lustre_fid.h

2016-08-16 Thread James Simmons
From: John L. Hammond Several inline functions return a structure that was passed in. Their is no need for this so just make these function void. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on:

[PATCH 23/80] staging: lustre: mdc: fixup MDS_SWAP_LAYOUTS ELC handling

2016-08-16 Thread James Simmons
From: John L. Hammond In mdc_ioc_swap_layouts() cancel *any* unused locks with LAYOUT or XATTR IBITS set on the two files. (This matches the locks acquired in mdt_swap_layouts(). Previously only locks that conflicted with a CR LAYOUT lock were cancelled.) Signed-off-by:

[PATCH 10/80] staging: lustre: lmv: remove lmv_get_easize

2016-08-16 Thread James Simmons
From: wang di Completely replace lmv_get_easize with lmv_mds_md_size. With this change we can delete lmv_get_easize. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by:

[PATCH 08/80] staging: lustre: lmv: remove duplicate MAX_HASH_*

2016-08-16 Thread James Simmons
From: wang di The MAX_HASH_* macros already exist in obd.h. Remove the duplicated defines in lustre_idl.h. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L.

[PATCH 00/80] staging: lustre: majority of missing fixes for 2.6 release

2016-08-16 Thread James Simmons
This is the combination of two previous patch sets that cover missing fixes for lustre version 2.5.56 to the 2.6 release minus a few patches that have some bug regressions. Also in this update are the latest LNet fixes. Alexander Boyko (1): staging: lustre: lnet: make connection more stable

[PATCH 04/80] staging: lustre: llite: pass inode to ll_release_page

2016-08-16 Thread James Simmons
From: wang di Add a inode parameter to ll_release_page. This will be used in the future. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 06/80] staging: lustre: mdc: don't take rpc lock for readdir case

2016-08-16 Thread James Simmons
From: wang di If the operation is IT_READDIR don't need to handle the mdc RPC lock. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906 Reviewed-by: John L. Hammond

[PATCH 30/80] staging: lustre: lmv: Ensure lmv_intent_lookup cleans up reqp

2016-08-16 Thread James Simmons
From: Nathaniel Clark Ensure there aren't invalid pointers hanging around after ptlrpc_req_finished is called. Signed-off-by: Nathaniel Clark Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4826 Reviewed-on:

[PATCH 09/80] staging: lustre: lmv: change handling of lmv striping information

2016-08-16 Thread James Simmons
From: wang di The lmv_[un]pack_md function are used to calculate the size of the data used to represent the LMV striping data. The original code was straight forward in its calculate with lmv_get_easize since only one type of data format could exist. We want to be able to

[PATCH 32/80] staging: lustre: lov: handle the case of stripe size is not power 2

2016-08-16 Thread James Simmons
From: Jinshan Xiong Calculate the end of current stripe correctly when the stripe size is not power 2. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4860 Reviewed-on: http://review.whamcloud.com/9882

[PATCH 31/80] staging: lustre: llite: avoid a deadlock in page write

2016-08-16 Thread James Simmons
From: Jinshan Xiong For a partial page write, it will have to issue a READ RPC firstly to get a full uptodate page. If another page is already locked by this thread it can easily cause deadlock. Signed-off-by: Jinshan Xiong Intel-bug-id:

[PATCH 26/80] staging: lustre: use bool for several function in lustre_idl.h/lustre_fid.h

2016-08-16 Thread James Simmons
From: John L. Hammond Change the return type of several predicate functions from int to bool. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/8641 Reviewed-by:

[PATCH 20/80] staging: lustre: llite: enable clients to inject error for lfsck

2016-08-16 Thread James Simmons
From: Fan Yong This enables the client to inject an error by altering the parent FID in order to test if the server side file system checker behaves properly. Signed-off-by: Fan Yong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3951 Reviewed-on:

[PATCH 46/80] staging: lustre: llite: Change readdir BRW metrics

2016-08-16 Thread James Simmons
From: Jinshan Xiong To simplify the code, change the metrics from bytes to pages. Signed-off-by: Andreas Dilger Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5034 Reviewed-on:

[PATCH 36/80] staging: lustre: reorder LOV_MAGIC_* definition

2016-08-16 Thread James Simmons
From: Fan Yong Since all the LOV_MAGIC_* definitions have the same postfix values break that value out into its own definition. With this we can check whether the magic's postfix match the LOV_MAGIC_MAGIC or not: if yes, then it is quite possible that the clients has

[PATCH 34/80] staging: lustre: lmv: rename request to preq in lmv_getattr_name()

2016-08-16 Thread James Simmons
From: John L. Hammond Rename request to preq. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4826 Reviewed-on: http://review.whamcloud.com/9863 Reviewed-by: Nathaniel Clark

[PATCH 05/80] staging: lustre: llite: change remove parameter to bool

2016-08-16 Thread James Simmons
From: wang di Change the 3rd parameter remove to a bool for ll_release_page function. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 21/80] staging: lustre: osc: allow to call brw_commit() multiple times

2016-08-16 Thread James Simmons
From: Jinshan Xiong Sometimes the rq_commit_cb of BRW RPC can be called twice if that RPC has already committed at reply time. This will cause inaccuracy of unstable pages accounting and then assertion. Signed-off-by: Jinshan Xiong

[PATCH 02/80] staging: lustre: llite: remove comment from ll_dir_read

2016-08-16 Thread James Simmons
From: wang di Remove comment about fixing swabbing that is not needed. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 12/80] staging: lustre: create striped directory

2016-08-16 Thread James Simmons
From: wang di 1. client send create request to the master MDT, which will allocate FIDs and create slaves. for all of slaves. 2. Client needs to revalidate slaves during intent getattr and open request. 3. lmv_stripe_md will include attributes(size, nlink etc) from

[PATCH 24/80] staging: lustre: don't need to const __u64 parameters for lustre_idl.h

2016-08-16 Thread James Simmons
From: John L. Hammond Remove the const for the __u64 parameters for inline functions in lustre_idl.h. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/8641

[PATCH 67/80] staging: lustre: ptlrpc: request gets stuck in UNREGISTERING phase

2016-08-16 Thread James Simmons
From: Andriy Skulysh Exit condition from UNREGISTERING phase is releasing of both reply and bulk buffers. Call ptlrpc_unregister_bulk() if ptlrpc_unregister_reply() wasn't completed in async mode before switching to UNREGISTERING phase. Signed-off-by: Andriy Skulysh

[PATCH 57/80] staging: lustre: osc: revise unstable pages accounting

2016-08-16 Thread James Simmons
From: Jinshan Xiong A few changes are made in this patch for unstable pages tracking: 1. Remove kernel NFS unstable pages tracking because it killed performance 2. Track unstable pages as part of LRU cache. Otherwise Lustre can use much more memory than

[PATCH 64/80] staging: lustre: ptlrpc: add OBD_CONNECT_UNLINK_CLOSE flag

2016-08-16 Thread James Simmons
From: Lai Siyao Add OBD_CONNECT_UNLINK_CLOSE flag for interop, once this is supported, client packs file handle in unlink RPC, and MDT will close file before unlink. Signed-off-by: Lai Siyao Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4367

[PATCH 66/80] staging: lustre: lmv: try all stripes for unknown hash functions

2016-08-16 Thread James Simmons
From: wang di For unknown hash type, LMV should try all stripes to locate the name entry. But it will only for lookup and unlink, i.e. we can only list and unlink entries under striped dir with unknown hash type. Signed-off-by: wang di Intel-bug-id:

[PATCH 79/80] staging: lustre: lnet: lock improvement for ko2iblnd

2016-08-16 Thread James Simmons
From: Liang Zhen kiblnd_check_sends() takes conn::ibc_lock at the begin and release this lock at the end, this is inefficient because most use-case needs to explicitly release ibc_lock before caling this function. This patches changes it to kiblnd_check_sends_locked() and

[PATCH 65/80] staging: lustre: llog: keep llog ctxt indices constant

2016-08-16 Thread James Simmons
From: Mikhail Pershin The llog context id table cannot be shrunk easily because that will cause index shifting and incompatibility between old client and new server and vice versa. Patch moves llog_ctxt_id table to the lustre_idl.h because this is wire protocol data,

[PATCH 58/80] staging: lustre: mdc: always use D_INFO for debug info when mdc_put_rpc_lock fails

2016-08-16 Thread James Simmons
From: wang di Also use D_INFO no matter what the error returned from mdc_put_rpc_lock. Signed-off-by: Andreas Dilger Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4973 Reviewed-on:

[PATCH 69/80] staging: lustre: osc: Automatically increase the max_dirty_mb

2016-08-16 Thread James Simmons
From: Hongchao Zhang When RPC size or the max RPCs in flight is increased, the actual limit might be max_dirty_mb. This patch automatically increases the max_dirty_mb value at connection time and when the related values are tuned manually by proc file system. this

[PATCH 78/80] staging: lustre: lnet: make connection more stable with packet loss

2016-08-16 Thread James Simmons
From: Alexander Boyko IB network may lose last connection handshake packet. This problem isn't Lustre specific and described at https://oss.oracle.com/pipermail/rds-devel/2007-December/000271.html for example. Solution is to make conection established if any packet

[PATCH 60/80] staging: lustre: ldlm: improve ldlm_lock_create() return value

2016-08-16 Thread James Simmons
From: Emoly Liu ldlm_lock_create() and ldlm_resource_get() always return NULL as error reporting and "NULL" is interpretted as ENOMEM incorrectly sometimes. This patch fixes this problem by using ERR_PTR() rather than NULL. Signed-off-by: Emoly Liu

[PATCH 80/80] staging: lustre: lnet: Stop Infinite CON RACE Condition

2016-08-16 Thread James Simmons
From: Doug Oucharek In current code, when a CON RACE occurs, the passive side will let the node with the higher NID value win the race. We have a field case where a node can have a "stuck" connection which never goes away and is the trigger of a never-ending loop of

[PATCH 71/80] staging: lustre: llite: remove assert for acl refcount

2016-08-16 Thread James Simmons
The purpose of this asssert to was to ensure lustre was properly managing its posix_acl access. This test is invalid due to the VFS layer also taking references on the posix_acl. In reality their is no simple way to detect this class of mistakes. Signed-off-by: James Simmons

[PATCH 56/80] staging: lustre: clio: Reduce memory overhead of per-page allocation

2016-08-16 Thread James Simmons
From: Jinshan Xiong A page in clio used to occupy 584 bytes, which will use size-1024 slab cache. This patch reduces the per-page overhead to 512 bytes so it can use size-512 instead. Signed-off-by: Jinshan Xiong Intel-bug-id:

Re: [PATCH v2] android: binder: fix dangling pointer comparison

2016-08-16 Thread Arve Hjønnevåg
On Mon, Aug 15, 2016 at 7:58 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 16, 2016 at 12:45:33AM +0200, Jann Horn wrote: >> If /dev/binder is opened and the opener process then e.g. calls execve, >> proc->vma_vm_mm will still point to the location of the now-freed >>

[PATCH] Staging: android: ion: ion_heap.c: fix parenthesis alignment

2016-08-16 Thread Ben LeMasurier
This fixes the checkpatch.pl "Alignment should match open parenthesis" issues in ion_heap.c. Signed-off-by: Ben LeMasurier --- drivers/staging/android/ion/ion_heap.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 2/9] staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue

2016-08-16 Thread Greg KH
On Tue, Aug 16, 2016 at 01:38:50PM +0200, Christian Gromm wrote: > On Mon, 15 Aug 2016 20:39:38 +0200 > Greg KH wrote: > > > On Mon, Jul 18, 2016 at 05:25:28PM +0200, Christian Gromm wrote: > > > The "broken in pipe" handler of the USB-HDM calls most_stop_enqueue() to

[PATCH v3 0/4] Drivers: hv: balloon: fix WS2012 memory hotplug issues and do some cleanup

2016-08-16 Thread Vitaly Kuznetsov
Changes since v2: - check for gaps when onlining 'tails' in hv_bring_pgs_online() too [Alex Ng] Changes since v1: - Keep ol_waitevent and wait when kernel memory onlining is disabled [Alex Ng] Crashes with Hyper-V balloon driver are reported with WS2012 (non-R2), hosts I was able to identify two

  1   2   >