[PATCH] staging: vt6655: Add spaces around +

2016-12-02 Thread PrasannaKumar Muralidharan
Add spaces around + for better readability of the code. Signed-off-by: PrasannaKumar Muralidharan --- drivers/staging/vt6655/device_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index a6

[PATCH 14/22] staging: lustre: obd: add callback for llog_cat_process_or_fork

2016-12-02 Thread James Simmons
From: Alexander Boyko Currently llog_process_or_fork() is hard coded to always pass the function pointer llog_cat_process_cb(). Change llog_cat_process_or_fork() to pass in any function pointer which will allow us more options for llog_cat callback routines in the future. Signed-off-by: Alexande

[PATCH 07/22] staging: lustre: obdclass: lu_site_purge() to handle purge-all

2016-12-02 Thread James Simmons
From: Alex Zhuravlev if the callers wants to purge all objects, then scanning should start from the first bucket. Signed-off-by: Alex Zhuravlev Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7038 Reviewed-on: http://review.whamcloud.com/18505 Reviewed-by: Mike Pershin Reviewed-by: Faccini

[PATCH 21/22] staging: lustre: remove set but unused variables

2016-12-02 Thread James Simmons
From: Yang Sheng Remove set but unused variables in nidstring.c and osc_request.c as reported by make W=1. Signed-off-by: Yang Sheng Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8378 Reviewed-on: http://review.whamcloud.com/23221 Reviewed-by: Bob Glossman Reviewed-by: Emoly Liu Reviewe

[PATCH 18/22] staging: lustre: import: don't reconnect during connect interpret

2016-12-02 Thread James Simmons
From: Mikhal Pershin The import connect flags might be cleared by ptlrpc_connect_import() wrongly if there is still connect interpret function is running. Use imp_connected boolean variable to indicate that we are still interpretting connect reply and don't try to reconnect until it ends. Signe

[PATCH 04/22] staging: lustre: osc: handle osc eviction correctly

2016-12-02 Thread James Simmons
From: Jinshan Xiong Cleanup everything if an OSC is being evicted. Group lock is not well supported yet. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6271 Reviewed-on: http://review.whamcloud.com/14989 Reviewed-by: John L. Hammond Reviewed-by: Bobi Jam Revi

[PATCH 17/22] staging: lustre: clio: remove mtime check in vvp_io_fault_start()

2016-12-02 Thread James Simmons
From: Bobi Jam In fault IO initialization, inode's mtime is saved, and after getting locks, when the IO is about to start, vvp_io_fault_start() checks the mtime's intactness. It's a false alarm, since the timestamp from MDS could be stale, we maintain mtime mainly on OST objects, and if the chec

[PATCH 10/22] staging: lustre: obdclass: limit lu_site hash table size on clients

2016-12-02 Thread James Simmons
From: Li Dongyang Allocating a big hash table using the current formula does not really work for clients. We will create new hash table for each mount on a single client which is a lot of memory more than expected. This patch limits the hash table up to 8M for clients, which has 524288 entries.

[PATCH 19/22] staging: lustre: llite: ll_dir_ioctl cleanup of redundant comparisons

2016-12-02 Thread James Simmons
From: Parinay Kondekar In ll_dir_ioctl() two identical comparisions are present for return code (rc) of ll_dir_getstripe(). This patch removes the other inside if( ) condition which is not necessary. Signed-off-by: Parinay Kondekar Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6512 Review

[PATCH 09/22] staging: lustre: llite: Add client mount opt to ignore suppress_pings

2016-12-02 Thread James Simmons
From: Wally Wang When Lustre servers enable 'suppress_pings', all clients will stop pinging. However, some clients may not have external mechanism to notify Lustre servers for node death and therefore need to preserve the Lustre ping. This patch provides a mount option 'always_ping' so that the

[PATCH 05/22] staging: lustre: lmv: remove nlink check in lmv_revalidate_slaves

2016-12-02 Thread James Simmons
From: wang di Remove nlink < 2 check in lmv_revalidate_slaves, because after nlink reaches to LDISKFS_LINK_MAX (65000), the inode nlink will be set to 1. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6984 Reviewed-on: http://review.whamcloud.com/16490 Reviewed-by: J

[PATCH 15/22] staging: lustre: rpc: increase bulk size

2016-12-02 Thread James Simmons
From: Jinshan Xiong To make the ptlrpc be able to size 16MB IO Signed-off-by: Jinshan Xiong Signed-off-by: Gu Zheng Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7990 Reviewed-on: http://review.whamcloud.com/19366 Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- .../lustre/lu

[PATCH 20/22] staging: lustre: osc: set lock data for readahead lock

2016-12-02 Thread James Simmons
From: Jinshan Xiong If osc_io_readahead() finds a lock that belongs to the previous instance of osc_object, the lock data pointer will be null. It has to instantiate with new instance otherwise those pages won't be destroyed at lock cancel, and then finally hit the assertion in osc_req_attr_set()

[PATCH 22/22] staging: lustre: libcfs: remove lnet upcall code

2016-12-02 Thread James Simmons
From: Alexander Zarochentsev Removing lnet upcall infrastructure completely as nobody uses it anymore. The upcall causes a delay before calling BUG() and might even cause a hang making getting a crash dump unreliable or containing outdated info. Signed-off-by: Alexander Zarochentsev Intel-bug-i

[PATCH 16/22] staging: lustre: llite: Invoke file_update_time in page_mkwrite

2016-12-02 Thread James Simmons
From: Yang Sheng Only update file times if page_mkwrite is not set. So we need call file_update_time by ourselves. Signed-off-by: Yang Sheng Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1118 Reviewed-on: http://review.whamcloud.com/18683 Reviewed-by: Andreas Dilger Reviewed-by: Niu Yawe

[PATCH 13/22] staging: lustre: statahead: set sai_index_wait with lli_sa_lock held

2016-12-02 Thread James Simmons
From: Fan Yong It is the sponsor thread of the statahead thread to update the sai::sai_index_wait. Originally, it didn't hold the lli_sa_lock when did that. Becuase of out-of-order execution others may miss to wakeup such thread. On the other hand, if the statahead RPC gets failure, it should wa

[PATCH 12/22] staging: lustre: libcfs: report hnode value for cfs_hash_putref

2016-12-02 Thread James Simmons
From: Yang Sheng Add more debugging info. Signed-off-by: Yang Sheng Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7084 Reviewed-on: http://review.whamcloud.com/17673 Reviewed-by: Andreas Dilger Reviewed-by: Fan Yong Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin Signed-off-by: Jam

[PATCH 02/22] staging: lustre: osc: fix debug log message formatting

2016-12-02 Thread James Simmons
From: Ashish Purkar Corrected newline specifier in debug log message. Signed-off-by: Ashish Purkar Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7029 Reviewed-on: http://review.whamcloud.com/16046 Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- dr

[PATCH 03/22] staging: lustre: mdt: race between open and migrate

2016-12-02 Thread James Simmons
From: wang di During intent open, it was found that if the parent has been migrated to another MDT, it should retry the open request with the new object, so it needs to keep the old object in the orphan list, which will be cleanup during next recovery. Note: if the client still using the old FID

[PATCH 11/22] staging: lustre: mdt: fail FMODE_WRITE open if the client is read only

2016-12-02 Thread James Simmons
From: Li Dongyang O_WRONLY/O_RDWR open on a file will get EROFS on a read only client, but the rpc gets sent to the mdt anyway. mdt will increase the mot_write_count of the mdt object, blocking subsequent FMODE_EXEC open to the same file. This patch makes sure we fail the FMODE_WRITE open with E

[PATCH 06/22] staging: lustre: llog: reset llog bitmap

2016-12-02 Thread James Simmons
From: wang di Once update request fails due to eviction or other failures, all of update request in the sending list should return fail, because after the failure, the update log in the following request will have wrong llog bitmap. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.c

[PATCH 08/22] staging: lustre: clio: revise read ahead algorithm

2016-12-02 Thread James Simmons
From: Jinshan Xiong ras_window_len should only be updated in ras_update() by read pattern and it can't be adjusted in ll_readahead() at all; ras_consecutive_pages is used to detect read pattern from mmap. It will be used to increase read ahead window length gradually. Signed-off-by: Jinshan Xion

[PATCH 01/22] staging: lustre: llite: clear LLIF_DATA_MODIFIED in atomic

2016-12-02 Thread James Simmons
From: Jinshan Xiong This flag should be cleared atomically after the op_data flag MDS_DATA_MODIFIED is packed. Otherwise, if there exists an operation to dirty the file again, the state may be missed on the MDT. Stop using spin lock lli_lock to protect operations of changing file flags; using bi

[PATCH 00/22] Next batch of missing work for upstream client

2016-12-02 Thread James Simmons
Batch of various fixes and clean ups missing in the upstream client. Only one smaller batch of patches left to sync lustre 2.8.0 version. These patches are independent of each other so they can be landed in any order. Alex Zhuravlev (1): staging: lustre: obdclass: lu_site_purge() to handle purge

[PATCH net-next] tools: hv: Enable network manager for bonding scripts on RHEL

2016-12-02 Thread Haiyang Zhang
From: Haiyang Zhang We found network manager is necessary on RHEL to make the synthetic NIC, VF NIC bonding operations handled automatically. So, enabling network manager here. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- tools/hv/bondvf.sh |4 ++-- 1 files changed, 2 in

RE: [PATCH 02/15] hyperv: Add a function to detect hv_device

2016-12-02 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, December 2, 2016 8:03 AM > To: KY Srinivasan > Cc: o...@aepfle.de; jasow...@redhat.com; Haiyang Zhang > ; linux-ker...@vger.kernel.org; > a...@canonical.com; de...@linuxdriverproject.org; > leann.oga

[PATCH 4/6] staging: lustre: headers: sort headers affected by obdo move

2016-12-02 Thread James Simmons
From: Ben Evans It was found if you sort the headers alphabetically that it reduced patch conflicts. This patch sorts the headers alphabetically and also place linux header first, then uapi header and finally the lustre kernel headers. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.in

[PATCH 2/6] staging: lustre: headers: sort headers affected by swab move

2016-12-02 Thread James Simmons
From: Ben Evans It was found if you sort the headers alphabetically that it reduced patch conflicts. This patch sorts the headers alphabetically and also place linux header first, then uapi header and finally the lustre kernel headers. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.in

[PATCH 1/6] staging: lustre: headers: move swab functions to new header files

2016-12-02 Thread James Simmons
From: Ben Evans Create headers for pack_generic.c and llog_swab.c Reference only where needed. This separates out the kernel only code from lustre_idl.h that is an UAPI header. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: http://review.whamcloud

[PATCH 6/6] staging: lustre: headers: use proper byteorder functions in lustre_idl.h

2016-12-02 Thread James Simmons
In order for lustre_idl.h to be usable for both user land and kernel space it has to use the proper byteorder functions. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/16916 Reviewed-by: Frank Zago Reviewed-by: Dmitr

[PATCH 5/6] staging: lustre: headers: Move functions out of lustre_idl.h

2016-12-02 Thread James Simmons
From: Ben Evans Migrate functions set/get_mrc_cr_flags, ldlm_res_eq ldlm_extent_overlap, ldlm_extent_contain, ldlm_request_bufsize, and alll the PTLRPC dump_* functions out of lustre_idl.h which is a UAPI header to the places in the kernel code they are actually used. Delete unused lmv_mds_md_str

[PATCH 3/6] staging: lustre: obdclass: Create a header for obdo related functions

2016-12-02 Thread James Simmons
From: Ben Evans Remove all obdo related functions from lustre_idl.h Create lustre_odbo.h. Include where appropriate. Make the functions lustre_get_wire_obdo and lustre_set_wire_obdo to not be inlined functions. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Re

[PATCH 0/6] Fix ups to make lustre_idl.h a proper UAPI header

2016-12-02 Thread James Simmons
The header lustre_idl.h is a UAPI header which contains extras that don't belong. This patch set moves a bunch of very kernel specific material out of the header. Lastly proper byteorder functions are used so this file can build in user space as well. Ben Evans (5): staging: lustre: headers: mov

[PATCH] staging: dgnc: fix unnamed parameter

2016-12-02 Thread Fernando Apesteguia
This patch fixes a checkpatch warning. Signed-off-by: Fernando Apesteguia --- drivers/staging/dgnc/dgnc_tty.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.h b/drivers/staging/dgnc/dgnc_tty.h index 85a1310..1ee0eee 100644 --- a/drivers/stag

[PATCH] staging: dgnc: Fix lines longer than 80 characters

2016-12-02 Thread Fernando Apesteguia
For the first lines of the patch, I opted to create a small function instead of breaking the the line in a weird way. The other changes are simple ones. Signed-off-by: Fernando Apesteguia --- drivers/staging/dgnc/dgnc_tty.c | 42 + 1 file changed, 26 inse

[PATCH] Staging: wilc1000: fixed the wrong error code

2016-12-02 Thread Atul Raj
in case of memory failure -ENOMEM should be returned. Signed-off-by: Atul Raj --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperati

[PATCH] staging: lustre: Fix a spatch warning due to an assignment from kernel to user space

2016-12-02 Thread Quentin Lambert
lnet_ipif_enumerate was assigning a pointer from kernel space to user space. This patch uses copy_to_user to properly do that assignment. Signed-off-by: Quentin Lambert --- shouldn't we be using ifc_req instead of ifc_buf? drivers/staging/lustre/lnet/lnet/lib-socket.c |8 +++- 1 file c

Re: [PATCH 02/15] hyperv: Add a function to detect hv_device

2016-12-02 Thread Greg KH
On Fri, Dec 02, 2016 at 03:38:51PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Thursday, December 1, 2016 11:36 PM > > To: KY Srinivasan > > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > > o...

RE: [PATCH 02/15] hyperv: Add a function to detect hv_device

2016-12-02 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, December 1, 2016 11:36 PM > To: KY Srinivasan > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com; lea

Re: [PATCH v3 3/9] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-12-02 Thread Laurentiu Tudor
Couple of nits inline. --- Best Regards, Laurentiu On 12/02/2016 12:41 AM, Stuart Yoder wrote: > From: Ioana Radulescu > > Add the command build/parse APIs for operating on DPIO objects through > the DPAA2 Management Complex. > > Signed-off-by: Ioana Radulescu > Signed-off-by: Roy Pledge > S

Re: [PATCH v2 0/7] Tests for sync infrastructure

2016-12-02 Thread Shuah Khan
On 12/01/2016 06:17 PM, Shuah Khan wrote: > On 10/19/2016 06:49 AM, Emilio López wrote: >> Hello everyone, >> >> This is a series of tests to exercise the sync kernel infrastructure. It is >> meant to be a test suite for the work Gustavo has been doing to destage it. >> >> These tests were original

Re: [PATCH v3 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-12-02 Thread Laurentiu Tudor
On 12/02/2016 12:41 AM, Stuart Yoder wrote: > From: Roy Pledge > > The DPIO service interface handles initialization of DPIO objects > and exports APIs to be used by other DPAA2 object drivers to perform > queuing and buffer management related operations. The service allows > registration of cal

Re: [PATCH v3 6/9] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-12-02 Thread Laurentiu Tudor
On 12/02/2016 12:41 AM, Stuart Yoder wrote: > From: Roy Pledge > > Add QBman APIs for frame queue and buffer pool operations. > > Signed-off-by: Roy Pledge > Signed-off-by: Haiying Wang > Signed-off-by: Stuart Yoder > --- > > Notes: > -v3 >-replace hardcoded dequeue token with a

Re: [PATCH v3 5/9] bus: fsl-mc: dpio: add global dpaa2 definitions

2016-12-02 Thread Laurentiu Tudor
On 12/02/2016 12:41 AM, Stuart Yoder wrote: > From: Roy Pledge > > Create header for global dpaa2 definitions. Add definitions > for dequeue results. > > Signed-off-by: Roy Pledge > Signed-off-by: Stuart Yoder > --- > include/linux/fsl/dpaa2-global.h | 203 >

Re: [PATCH v3 4/9] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-12-02 Thread Laurentiu Tudor
Some more bits and pieces inside. --- Best Regards, Laurentiu On 12/02/2016 12:41 AM, Stuart Yoder wrote: > From: Roy Pledge > > Add global definitions for DPAA2 frame descriptors and scatter > gather entries. > > Signed-off-by: Roy Pledge > Signed-off-by: Stuart Yoder > --- > > Notes: >

[PATCH 21/22 v3] staging/lustre/libcfs: Convert to hotplug state machine

2016-12-02 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine. Cc: Oleg Drokin Cc: Andreas Dilger Cc: James Simmons Cc: Greg Kroah-Hartman Cc: lustre-de...@lists.lustre.org Cc: de...@driverdev.osuosl.org Signed-off-by: Anna-Maria Gleixner [bigeasy: rebase to linux-next] Signed-off-b

Re: [PATCH v2] staging: wlan-ng: Fixed too long code line warnings.

2016-12-02 Thread Markus Böhme
On 12/02/2016 11:09 AM, Yan Laijun wrote: > Fixed checkpatch warning "line over 80 characters" in > wlan-ng/hfa384x_usb.c file. > > Signed-off-by: Yan Laijun > --- > Changes in v2: > - Remove initialization of usbin on its decarlation. > --- > drivers/staging/wlan-ng/hfa384x_usb.c | 3 ++- > 1

Re: [PATCH 21/22 v2] staging/lustre/libcfs: Convert to hotplug state machine

2016-12-02 Thread Greg Kroah-Hartman
On Fri, Dec 02, 2016 at 11:18:25AM +0100, Sebastian Andrzej Siewior wrote: > From: Anna-Maria Gleixner > > Install the callbacks via the state machine. > Cc: Oleg Drokin > Cc: Andreas Dilger > Cc: James Simmons > Cc: Greg Kroah-Hartman > Cc: lustre-de...@lists.lustre.org > Cc: de...@driverdev

[PATCH 21/22 v2] staging/lustre/libcfs: Convert to hotplug state machine

2016-12-02 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine. Cc: Oleg Drokin Cc: Andreas Dilger Cc: James Simmons Cc: Greg Kroah-Hartman Cc: lustre-de...@lists.lustre.org Cc: de...@driverdev.osuosl.org Signed-off-by: Anna-Maria Gleixner [bigeasy: rebase to linux-next] Signed-off-by

[PATCH v2] staging: wlan-ng: Fixed too long code line warnings.

2016-12-02 Thread Yan Laijun
Fixed checkpatch warning "line over 80 characters" in wlan-ng/hfa384x_usb.c file. Signed-off-by: Yan Laijun --- Changes in v2: - Remove initialization of usbin on its decarlation. --- drivers/staging/wlan-ng/hfa384x_usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dr

Re: [PATCH] Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.

2016-12-02 Thread Yan Laijun
Remove initialization of usbin on its decarlation. Yan Laijun (1): Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings. drivers/staging/wlan-ng/hfa384x_usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.9.1 ___ devel

[PATCH v4] x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic

2016-12-02 Thread Vitaly Kuznetsov
There is a feature in Hyper-V ('Debug-VM --InjectNonMaskableInterrupt') which injects NMI to the guest. We may want to crash the guest and do kdump on this NMI by enabling unknown_nmi_panic. To make kdump succeed we need to allow the kdump kernel to re-establish VMBus connection so it will see VMBu

Re: [PATCH v3] x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic

2016-12-02 Thread Vitaly Kuznetsov
Thomas Gleixner writes: > Vitaly, > > On Thu, 1 Dec 2016, Vitaly Kuznetsov wrote: > >> There is a feature in Hyper-V (Debug-VM --InjectNonMaskableInterrupt) which >> injects NMI to the guest. Prior to WS2016 the NMI is injected to all CPUs >> of the guest and WS2016 injects it to CPU0 only. When