[PATCH] staging: dgnc: re-arrange functions for removing forward declarations

2016-11-10 Thread Daeseok Youn
Re-arrange the functions for removing forward declarations in dgnc_driver.c Signed-off-by: Daeseok Youn --- I've checked the object size of dgnc_driver.c before and after. It has same size after re-arranging functions. drivers/staging/dgnc/dgnc_driver.c | 533 ++-

[PATCH v2] staging: vc04_services: rework ioctl code path

2016-11-10 Thread Michael Zoran
VCHIQ/vc04_services has a userland device interface that includes ioctls. The current ioctl implementation is a single monolithic function over 1,000+ lines that handles 17 different ioctls through a complex maze of switch and if statements. The change reimplements that code path by breaking up th

Re: [PATCH 06/35] staging: lustre: osc: Performance tune for LRU

2016-11-10 Thread kbuild test robot
Hi Jinshan, [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20161110] [cannot apply to v4.9-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/James-Simmons

Re: [PATCH 05/35] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-10 Thread kbuild test robot
Hi Mikhail, [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20161110] [cannot apply to v4.9-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/James-Simmons

Re: [PATCH 0/2] mmc: allow mmc_alloc_host() and tmio_mmc_host_alloc()

2016-11-10 Thread Masahiro Yamada
2016-11-10 22:35 GMT+09:00 Greg Kroah-Hartman : > On Thu, Nov 10, 2016 at 10:24:21PM +0900, Masahiro Yamada wrote: >> >> sdhci_alloc_host() returns an error pointer when it fails. >> but mmc_alloc_host() cannot. >> >> This series allow to propagate a proper error code >> when host-allocation fails.

[PATCH] [STYLE]staging:braille:braille_console.c [2/2]

2016-11-10 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to WARNING: Missing a blank line after declarations Signed-off-by: Walt Feasel --- drivers/accessibility/braille/braille_console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/accessibility/braille/braille_console.c b/d

[PATCH] [STYLE]staging:braille:braille_console.c [1/2]

2016-11-10 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to ERROR: Use 4 digit octal (0777) not decimal permissions Signed-off-by: Walt Feasel --- drivers/accessibility/braille/braille_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accessibility/braille/br

Re: [PATCH] staging: vc04_services: add vchiq_pagelist_info structure

2016-11-10 Thread Greg KH
On Mon, Nov 07, 2016 at 07:41:27AM -0800, Michael Zoran wrote: > On Mon, 2016-11-07 at 11:03 +0100, Greg KH wrote: > > On Mon, Oct 31, 2016 at 01:10:35AM -0700, Michael Zoran wrote: > > > The current dma_map_sg based implementation for bulk messages > > > computes many offsets into a single allocat

Re: [PATCH] staging: lustre: lov: Fix signed wrap around when decrementing index 'i'

2016-11-10 Thread Dilger, Andreas
On Nov 10, 2016, at 07:19, Colin King wrote: > > From: Colin Ian King > > Change predecrement compare to post decrement compare to avoid an > unsigned integer wrap-around comparisomn when decrementing in the while > loop. > > Issue found with static analysis with CoverityScan, CID 1375917 Tha

Re: [PATCH] driver-core: fix odd_ptr_err.cocci warnings

2016-11-10 Thread Dmitry Torokhov
[ resending as plain text ] On Thu, Nov 10, 2016 at 12:18 PM, Dmitry Torokhov wrote: > > > On Thu, Nov 10, 2016 at 12:16 PM, Julia Lawall wrote: >> >> PTR_ERR should access the value just tested by IS_ERR >> >> Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci >> >> CC: Dmitry Torokhov >

Re: [PATCH] driver-core: fix odd_ptr_err.cocci warnings

2016-11-10 Thread Julia Lawall
On Thu, 10 Nov 2016, Dmitry Torokhov wrote: > [ resending as plain text ] > > On Thu, Nov 10, 2016 at 12:18 PM, Dmitry Torokhov wrote: > > > > > > On Thu, Nov 10, 2016 at 12:16 PM, Julia Lawall wrote: > >> > >> PTR_ERR should access the value just tested by IS_ERR > >> > >> Generated by: scrip

[PATCH] driver-core: fix platform_no_drv_owner.cocci warnings

2016-11-10 Thread Julia Lawall
Remove .owner field initialization as the core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Dmitry Torokhov Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- 0-day warning: tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-cor

[PATCH] driver-core: fix odd_ptr_err.cocci warnings

2016-11-10 Thread Julia Lawall
PTR_ERR should access the value just tested by IS_ERR Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci CC: Dmitry Torokhov Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- 0-day warning related to the following commit: tree: https://git.kernel.org/pub/scm/linux/kernel/gi

Re: [patch] staging: lustre: lov: crash in error handling

2016-11-10 Thread James Simmons
> We accidentally made this unsigned so now the error handling will loop > until it crashes. > > Fixes: 55051039fdad ('staging: lustre: lov: remove LSM from struct lustre_md') > Signed-off-by: Dan Carpenter Yep. I just sent a patch to fix that. > diff --git a/drivers/staging/lustre/lustre/lov

[patch] staging: lustre: lov: crash in error handling

2016-11-10 Thread Dan Carpenter
We accidentally made this unsigned so now the error handling will loop until it crashes. Fixes: 55051039fdad ('staging: lustre: lov: remove LSM from struct lustre_md') Signed-off-by: Dan Carpenter diff --git a/drivers/staging/lustre/lustre/lov/lov_ea.c b/drivers/staging/lustre/lustre/lov/lov_ea

RE: [PATCH V2 08/14] Drivers: hv: balloon: Fix info request to show max page count

2016-11-10 Thread Alex Ng (LIS)
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Thursday, November 10, 2016 11:09 AM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...@redha

Re: [PATCH 10/15] staging: comedi: tio: implement global tio/ctr routing

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Adds ability to use device-global names in command args, in particular cmd->start_arg (for NI_CtrArmStartTrigger), and cmd->scan_begin_arg or cmd->convert_arg (either is used to specify NI_CtrGate, with preference given to cmd->scan_begin_arg, if it is s

Re: [PATCH 08/15] staging: comedi: ni_mio_common: implement global pfi,rtsi routing

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Implement device-global config interface for ni_mio devices. In particular, this patch implements: INSN_DEVICE_CONFIG_TEST_ROUTE, INSN_DEVICE_CONFIG_CONNECT_ROUTE, INSN_DEVICE_CONFIG_DISCONNECT_ROUTE, INSN_DEVICE_CONFIG_GET_ROUTES for the ni mio devices

Re: [PATCH 08/15] staging: comedi: ni_mio_common: implement global pfi,rtsi routing

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Implement device-global config interface for ni_mio devices. In particular, this patch implements: INSN_DEVICE_CONFIG_TEST_ROUTE, INSN_DEVICE_CONFIG_CONNECT_ROUTE, INSN_DEVICE_CONFIG_DISCONNECT_ROUTE, INSN_DEVICE_CONFIG_GET_ROUTES for the ni mio devices

Re: [PATCH 2/4] Staging: vme: Use BIT macro for bit field definitions.

2016-11-10 Thread Dan Carpenter
On Wed, Nov 02, 2016 at 01:27:09AM +0300, Anton Leshchenko wrote: > #define PIO2_CNTR_MODE0 0 > -#define PIO2_CNTR_MODE1 (1 << 1) > -#define PIO2_CNTR_MODE2 (2 << 1) > -#define PIO2_CNTR_MODE3 (3 << 1) > -#define P

Re: [PATCH 02/15] staging: comedi: add abstracted NI signal/terminal named constants

2016-11-10 Thread Ian Abbott
On 10/11/16 18:57, Spencer E Olson wrote: On Thu, 2016-11-10 at 16:29 +, Ian Abbott wrote: On 12/10/16 12:05, Spencer E. Olson wrote: + * Base of abstracted NI names. + * The first 16 bits of *_arg are reserved for channel selection. + * Since we only actually need the first 4 or 5 bits for

Re: [PATCH V2 08/14] Drivers: hv: balloon: Fix info request to show max page count

2016-11-10 Thread Dan Carpenter
On Tue, Nov 01, 2016 at 01:07:28PM -0700, k...@exchange.microsoft.com wrote: > From: Alex Ng > > Balloon driver was only printing the size of the info blob and not the > actual content. This fixes it so that the info blob (max page count as > configured in Hyper-V) is printed out. > > Signed-off

Re: [PATCH v2] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-10 Thread James Simmons
> James Simmons reports: > > The ldlm_pool field pl_recalc_time is set to the current > > monotonic clock value but the interval period is calculated > > with the wall clock. This means the interval period will > > always be far larger than the pl_recalc_period, which is > > just a small interval

Re: [PATCH 06/15] staging: comedi: add interface to ni routing table information

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Adds interface and associated unittests for accessing/looking-up/validating the new ni routing table information. Signed-off-by: Spencer E. Olson --- drivers/staging/comedi/Kconfig | 4 + drivers/staging/comedi/drivers/Makefile

Re: [PATCH 02/15] staging: comedi: add abstracted NI signal/terminal named constants

2016-11-10 Thread Spencer E Olson
On Thu, 2016-11-10 at 16:29 +, Ian Abbott wrote: > On 12/10/16 12:05, Spencer E. Olson wrote: > > This change adds abstracted constants for National Instruments > > terminal/signal names. > > > > Some background: > > There have been significant confusions over the past many years for users >

Re: [PATCH 04/15] staging: comedi: ni_routing: add ni routing tables

2016-11-10 Thread Spencer E Olson
On Thu, 2016-11-10 at 18:18 +, Ian Abbott wrote: > On 10/11/16 17:54, Greg Kroah-Hartman wrote: > > On Thu, Nov 10, 2016 at 05:17:22PM +, Ian Abbott wrote: > >> On 12/10/16 12:05, Spencer E. Olson wrote: > >>> Adds tables of all register values for routing various signals to various > >>> t

Re: [PATCH 04/15] staging: comedi: ni_routing: add ni routing tables

2016-11-10 Thread Ian Abbott
On 10/11/16 17:54, Greg Kroah-Hartman wrote: On Thu, Nov 10, 2016 at 05:17:22PM +, Ian Abbott wrote: On 12/10/16 12:05, Spencer E. Olson wrote: Adds tables of all register values for routing various signals to various terminals on National Instruments hardware. This information is directly

[PATCH 4/4] staging: wlan-ng: use GENMASK macro in two bitwise operations in prism2sta.c

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for two bitwise operations included in prism2sta.c source file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/prism2s

Re: [PATCH 03/15] staging: comedi: ni_routing: Add NI signal routing info

2016-11-10 Thread Ian Abbott
On 10/11/16 17:54, Greg Kroah-Hartman wrote: On Thu, Nov 10, 2016 at 05:08:36PM +, Ian Abbott wrote: On 12/10/16 12:05, Spencer E. Olson wrote: See README for a thorough discussion of this content. Adds two different collections of CSV files that: 1) summarize the various register values f

[PATCH 2/4] staging: wlan-ng: use GENMASK macro in different defines of p80211hdr.h

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in p80211hdr.h header file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/p80211hdr.h | 5 ++---

[PATCH 3/4] staging: wlan-ng: use GENMASK macro in define of p80211netdev.h

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in p80211netdev.h header file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/p80211netdev.h | 2

[PATCH 1/4] staging: wlan-ng: use GENMASK macro in different defines of hfa384x.h

2016-11-10 Thread Sergio Paracuellos
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in hfa384x.h header file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 29 -

[PATCH 0/4] staging: wlan-ng: make use of GENMASK macro

2016-11-10 Thread Sergio Paracuellos
This patchset replaces mask stuff manipulation which is being used using BIT macro with or operators with the use of GENMASK macro. Sergio Paracuellos (4): staging: wlan-ng: use GENMASK macro in different defines of hfa384x.h staging: wlan-ng: use GENMASK macro in different defines of p802

Re: [PATCH 05/15] staging: comedi: add new device-global config interface

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Adds interface for configuring options that are global to all sub-devices. For now, only options to configure device-globally identified signal routes have been defined. Signed-off-by: Spencer E. Olson --- drivers/staging/comedi/comedi.h | 49 +++

Re: [PATCH 03/15] staging: comedi: ni_routing: Add NI signal routing info

2016-11-10 Thread Greg Kroah-Hartman
On Thu, Nov 10, 2016 at 05:08:36PM +, Ian Abbott wrote: > On 12/10/16 12:05, Spencer E. Olson wrote: > > See README for a thorough discussion of this content. > > > > Adds two different collections of CSV files that: > > 1) summarize the various register values for creating routes > >for a

Re: [PATCH 04/15] staging: comedi: ni_routing: add ni routing tables

2016-11-10 Thread Greg Kroah-Hartman
On Thu, Nov 10, 2016 at 05:17:22PM +, Ian Abbott wrote: > On 12/10/16 12:05, Spencer E. Olson wrote: > > Adds tables of all register values for routing various signals to various > > terminals on National Instruments hardware. This information is directly > > compared to and taken from registe

Re: [lustre-devel] [PATCH] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-10 Thread James Simmons
> On Thursday, November 10, 2016 1:21:08 PM CET Greg Kroah-Hartman wrote: > > > > > > the intention here is simply to have the console log keep the > > > same numbers as "date +%s" for absolute values. The patch that > > > James suggested converting everything to ktime_get_seconds() > > > would r

Re: [patch] staging/lustre/osc: indent an if statement

2016-11-10 Thread James Simmons
> We accidentally removed a tab here. Let's add it back, and some curly > braces as well since this is a muti-line indent. Reviewed-by: James Simmons > Signed-off-by: Dan Carpenter > > diff --git a/drivers/staging/lustre/lustre/osc/osc_lock.c > b/drivers/staging/lustre/lustre/osc/osc_lock.

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

2016-11-10 Thread Stuart Yoder
> -Original Message- > From: Ruxandra Ioana Radulescu > Sent: Thursday, November 10, 2016 9:04 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: German Rivera ; de...@driverdev.osuosl.org; > linux-ker...@vger.kernel.org; > ag...@suse.de; a...@arndb.de; Leo Li ; Roy Pledge > ; Hai

[PATCH 20/35] staging: lustre: ptlrpc: Move IT_* definitions to lustre_idl.h

2016-11-10 Thread James Simmons
From: Ben Evans Put IT_* definitions into an enum, as they're sent over the wire, adjust calls, print statements, etc. to use the new enum. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6746 Reviewed-on: http://review.whamcloud.com/16228 Reviewed-by: John L. Hammo

[PATCH 17/35] staging: lustre: obd: Remove dead code in precleanup

2016-11-10 Thread James Simmons
From: Henri Doreau There used to be several pre-cleanup phases, but only OBD_CLEANUP_EXPORTS is actually used. Thus remove the whole notion of precleanup phases. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7034 Reviewed-on: http://review.whamcloud.com/16061

[PATCH 19/35] staging: lustre: obdclass: remove structure holes to reduce memory

2016-11-10 Thread James Simmons
From: Andreas Dilger Fix the alignment of fields in commonly-used structures to reduce memory usage on the client and server. Structures fixed: ptlrpc_reply_state: reduced by 8 bytes obd_device: reduced by 16 bytes niobuf_local: reduced by 8 bytes Signed-off-by: Andreas Dilger I

[PATCH 26/35] staging: lustre: mdc: remove console spew from mdc_ioc_fid2path

2016-11-10 Thread James Simmons
From: Andreas Dilger In some cases with a very long pathname, such as with sanity.sh test_154c, mdc_ioc_fid2path() would spew long debug messages to the log, because libcfs_debug_vmsg2() refuses to log messages over one page in size. Truncate the debug message to only log the last 512 characters

[PATCH 24/35] staging: lustre: osc: osc_extent should hold refcount to osc_object

2016-11-10 Thread James Simmons
From: Jinshan Xiong To avoid a race that osc_extent and osc_object destroy happens on the same time, which causes kernel crash. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7164 Reviewed-on: http://review.whamcloud.com/16433 Reviewed-by: John L. Hammond Revi

[PATCH 23/35] staging: lustre: ldlm: improve lock timeout messages

2016-11-10 Thread James Simmons
From: John L. Hammond In ldlm_expired_completion_wait() remove the useless LCONSOLE_WARN() message and upgrade the LDLM_DEBUG() statement to LDLM_ERROR(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7296 Reviewed-on: http://review.whamcloud.com/16824 Revie

[PATCH 06/35] staging: lustre: osc: Performance tune for LRU

2016-11-10 Thread James Simmons
From: Jinshan Xiong Early launch page LRU work in osc_io_rw_iter_init(); Change the page LRU shrinking policy by OSC attributes; Delete the contented lock osc_object::oo_seatbelt Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5108 Reviewed-on: http://review.wha

[PATCH 16/35] staging: lustre: llite: support SELinux context labelling

2016-11-10 Thread James Simmons
From: Andrew Wellington SELinux contexts are applied by the kernel if mount options are not binary. As we don't use any binary mount options in Lustre, remove the binary mount option flag. Signed-off-by: Andrew Wellington Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com

[PATCH 03/35] staging: lustre: ptlrpc: mbits is sent within ptlrpc_body

2016-11-10 Thread James Simmons
From: Liang Zhen ptlrpc is using rq_xid as matchbits of bulk data, which means it has to change rq_xid for bulk resend to avoid several bulk data landing into the same buffer from different resends. This patch uses one of reserved __u64 of ptlrpc_body to transfer mbits to peer, matchbits is now

[PATCH 32/35] staging: lustre: mount: fix lmd_parse() to handle commas in expr_list

2016-11-10 Thread James Simmons
From: Jian Yu The lmd_parse() function parses mount options with comma as delimiter without considering commas in expr_list as follows is a valid LNET nid range syntax: :== '[' [ ',' ] ']' This patch fixes the above issue by using cfs_parse_nidlist() to parse nid range list instead of using

[PATCH 13/35] staging: lustre: llite: lookup master inode by ilookup5_nowait

2016-11-10 Thread James Simmons
From: wang di Do not lookup master inode by ilookup5, instead it should use ilookup5_nowait, otherwise it will cause dead lock, 1. Client1 send chmod req to the MDT0, then on MDT0, it enqueues master and all of its slaves lock, (mdt_attr_set() ->mdt_lock_slaves()), after gets master and st

[PATCH 29/35] staging: lustre: misc: clean up DFID related error messages

2016-11-10 Thread James Simmons
From: Andreas Dilger Improve the error messages related to DFID output and parsing for usage in userspace. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1606 Reviewed-on: http://review.whamcloud.com/6156 Reviewed-by: Frank Zago Reviewed-by: Ben Evans Review

[PATCH 34/35] staging: lustre: lnet: add offset for selftest brw

2016-11-10 Thread James Simmons
From: Liang Zhen In current lnet selftest, both client and server side bulk have no offset and we can only test page aligned IO, this patch changed this: - user can set brw offset by lst add_test ... brw off=OFFSET ... - offset is only effective on client side so far - to simply implementation,

[PATCH 35/35] staging: lustre: idl: clean up file attribute flags

2016-11-10 Thread James Simmons
From: Andreas Dilger Remove unused file attribute flag LUSTRE_BFLAG_UNCOMMITTED_WRITES that was used internally on the client at one point. Add flags from the kernel which may be useful in the near future. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5017 R

[PATCH 25/35] staging: lustre: osc: Do not merge extents with partial pages

2016-11-10 Thread James Simmons
From: Jinshan Xiong After range lock is introduced to Lustre, it's possible for multiple threads to submit osc_extents with partial pages, and finally I/O engine may try to merge these extents, which will end up with assert in osc_build_rpc(). In this patch, osc_extent::oe_no_merge is introduced

[PATCH 33/35] staging: lustre: hsm: prevent migration of HSM archived files

2016-11-10 Thread James Simmons
From: John L. Hammond The reference copytool cannot handle migration of HSM archive files. In the MDT migration path check for HSM attributes and fail if they are present. In the LMV layer allow creation of volatile files with any MDT index. Add a test to sanity-hsm to ensure that attempting to m

[PATCH 15/35] staging: lustre: llite: tar restore fails for HSM released files.

2016-11-10 Thread James Simmons
From: Aditya Pandit If you create a file, archive and release it, it keeps only a link and all information in xattr. If you tar the file with --xattr you will store the same striping information and link information in the tar. If you delete the file, the file and archive state does not make sens

[PATCH 22/35] staging: lustre: llite: clear dir stripe md in ll_iget

2016-11-10 Thread James Simmons
From: wang di If ll_iget fails during inode initialization, especially during striped directory lookup after creation failed, then it should clear stripe MD before make_bad_inode(), because make_bad_inode() will reset the i_mode, which can cause ll_clear_inode() skip freeing those stripe MD. Sig

[PATCH 31/35] staging: lustre: obdclass: add export for lprocfs_stats_alloc_one()

2016-11-10 Thread James Simmons
From: Chennaiah Palla When compiling the kernel without optimization, when using GCOV, the lprocfs_stats_alloc_one() symbol is not properly exported to other modules and causes the ptlrpc module to fail loading with an unknown symbol. Added EXPORT_SYMBOL(lprocfs_stats_alloc_one) so that this work

[PATCH 18/35] staging: lustre: osc: fix max_dirty_mb tunable setting limit

2016-11-10 Thread James Simmons
From: Gregoire Pichon The OSC tunable max_dirty_mb must be set to a value strictly lower than 2048, as it is assumed by OSS in ofd_grant_alloc() routine. Signed-off-by: Gregoire Pichon Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7218 Reviewed-on: http://review.whamcloud.com/16652 Review

[PATCH 21/35] staging: lustre: statahead: lock leaks if statahead file recreated

2016-11-10 Thread James Simmons
From: Lai Siyao During statahead file may be recreated, though this is rare case, current code will leak the lock, this patch will release lock in this case. Signed-off-by: Lai Siyao Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7232 Reviewed-on: http://review.whamcloud.com/16841 Reviewed

[PATCH 12/35] staging: lustre: clio: get rid of cl_req

2016-11-10 Thread James Simmons
From: Jinshan Xiong Implement cl_req_attr_set with a cl_object operation. Get rid of cl_req and related function and data structures. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6943 Reviewed-on: http://review.whamcloud.com/15833 Reviewed-by: John L. Hammond

[PATCH 05/35] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-10 Thread James Simmons
From: Mikhail Pershin - llh_cat_idx may become bigger than llog bitmap size in llog_cat_set_first_idx() function - it is wrong to use previous cur_offset as new buffer offset, new offset should be calculated from value returned by llog_next_block(). - optimize llog_skip_over() to find llog

[PATCH 30/35] staging: lustre: llite: ll_write_begin/end not passing on errors

2016-11-10 Thread James Simmons
From: Hiroya Nozaki Because of a implementation of generic_perform_write(), write(2) may return 0 with no errno even if EDQUOT or ENOSPC actually happened in it. This patch fixes the issue with setting a proper errno to ci_result. Signed-off-by: Hiroya Nozaki Intel-bug-id: https://jira.hpdd.int

[PATCH 10/35] staging: lustre: lmv: revalidate the dentry for striped dir

2016-11-10 Thread James Simmons
From: wang di If there are bad stripe during striped dir revalidation, most likely due the race between close(unlink) and getattr, then let's revalidate the dentry, instead of return error, like normal directory. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6831 Re

[PATCH 14/35] staging: lustre: nrs: serialize executions of nrs_policy_stop

2016-11-10 Thread James Simmons
From: Henri Doreau Do not release nrs_lock in nrs_policy_stop0 to prevent op_policy_stop() from being executed concurrently. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7096 Reviewed-on: http://review.whamcloud.com/16214 Reviewed-by: Lai Siyao Reviewed-by: E

[PATCH 28/35] staging: lustre: osc: Remove remains of osc_ast_guard

2016-11-10 Thread James Simmons
From: Oleg Drokin osc_ast_guard has been removed by the clio simplification. Remove the last lock class definition. Signed-off-by: Oleg Drokin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7148 Reviewed-on: http://review.whamcloud.com/16392 Reviewed-by: Andreas Dilger Reviewed-by: Bobi J

[PATCH 09/35] staging: lustre: mgc: IR log failure should not stop mount

2016-11-10 Thread James Simmons
From: wang di If clients or other targets can not get IR config lock or lock, the mount should continue, instead of failing. Because timeout mechanism will handle the recovery anyway. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6906 Reviewed-on: http://review.wham

[PATCH 11/35] staging: lustre: ptlrpc: race at req processing

2016-11-10 Thread James Simmons
From: Alexander Boyko Fix: 5c689e689baa ("staging/lustre/ptlrpc: race at req processing") decreased the race window, but does not remove it. Disable rq_resend right after MSG_REPLAY flag set. Import lock protects two threads from race between set/clear MSG_REPLAY and rq_resend flags. Signed-off-

[PATCH 01/35] staging: lustre: hsm: Use file lease to implement migration

2016-11-10 Thread James Simmons
From: Henri Doreau Implement non-blocking migration based on exclusive open instead of group lock. Implemented exclusive close operation to atomically put a lease, swap two layouts and close a file. This allows race-free migrations. Make the caller responsible for retrying on failure (EBUSY, EAG

[PATCH 27/35] staging: lustre: ptlrpc: reset imp_replay_cursor

2016-11-10 Thread James Simmons
From: Hongchao Zhang At client side, the replay cursor using to speed up the lookup of committed open requests in its obd_import should be resetted for normal connection (not reconnection) during recovery. Signed-off-by: Hongchao Zhang Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6802 Re

[PATCH 04/35] staging: lustre: lov: init LOV stripe type beforehand

2016-11-10 Thread James Simmons
From: Bobi Jam When lu_object_alloc() reaches to LOV object init, we need initialize its stripe type beforehand, so that if something wrong in the conf buffer, the object chain need to be traversed to free what has been allocated, with LOV object type be set as LLT_EMPTY, and when the LOV part is

[PATCH 07/35] staging: lustre: lov: avoid infinite loop in lsm_alloc_plain()

2016-11-10 Thread James Simmons
From: John L. Hammond In lsm_alloc_plain() use a signed loop index to avoid an infinite loop in the error path. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6872 Reviewed-on: http://review.whamcloud.com/15644 Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Dr

[PATCH 02/35] staging: lustre: obd: rename obd_unpackmd() to md_unpackmd()

2016-11-10 Thread James Simmons
From: John L. Hammond obd_unpackmd() is only implemented by LMV so move it from OBD operations to OBD MD operations and update the prototype to reflex the actual usage. Remove the unused function obd_free_memmd(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/L

[PATCH 00/35] second batch of missing lustre 2.8 patches

2016-11-10 Thread James Simmons
More fixes missing from the upstream client. Also a nice cleanup with the removal of cl_req which is no longer needed. More cleanup for lustre_idl.h which is a uapi header. Like the last batch these patches are independent of order. Aditya Pandit (1): staging: lustre: llite: tar restore fails fo

[PATCH 08/35] staging: lustre: lmv: lock necessary part of lmv_add_target

2016-11-10 Thread James Simmons
From: wang di Release lmv_init_mutex once the new target is added into lmv_tgt_desc, so lmv_obd_connect will not be serialized. New target should be allowed to added to fld client lists, so FLD can always choose new added target to do the FLD lookup request, and also remove some noise error mess

Re: [PATCH 04/15] staging: comedi: ni_routing: add ni routing tables

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Adds tables of all register values for routing various signals to various terminals on National Instruments hardware. This information is directly compared to and taken from register-level programming documentation and/or register-level programming exam

[PATCH] staging: rtl8192e: Fix checkpatch.pl warnings

2016-11-10 Thread Yamanappagouda Patil
Fixed "missing blank line after declaration" checkpatch.pl warnings. Signed-off-by: Yamanappagouda Patil --- drivers/staging/rtl8192e/rtllib_rx.c | 1 + drivers/staging/rtl8192e/rtllib_softmac.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/dr

Re: [PATCH 03/15] staging: comedi: ni_routing: Add NI signal routing info

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: See README for a thorough discussion of this content. Adds two different collections of CSV files that: 1) summarize the various register values for creating routes for a particular family of NI hardware devices; 2) summarize all possible (direct) ro

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
> -Original Message- > > > From: Jake Oshins > > > From: Dexuan Cui > > > Sent: Wednesday, November 9, 2016 11:18 PM > > > We don't really need such a big on-stack buffer. > > > vmbus_sendpacket() here only uses sizeof(struct pci_child_message). > > > > > > @@ -1271,9 +1271,9 @@ static str

[PATCH] staging: rtl8192e: Fix checkpatch warnings

2016-11-10 Thread Yamanappagouda Patil
Fixed checkpatch.pl warning on Block comments. Signed-off-by: Yamanappagouda Patil --- drivers/staging/rtl8192e/dot11d.c | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 2 +- 4 files c

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Dexuan Cui
> From: Jake Oshins > > From: Dexuan Cui > > Sent: Wednesday, November 9, 2016 11:18 PM > > We don't really need such a big on-stack buffer. > > vmbus_sendpacket() here only uses sizeof(struct pci_child_message). > > > > @@ -1271,9 +1271,9 @@ static struct hv_pci_dev > > *new_pcichild_device(struct

Re: [PATCH 02/15] staging: comedi: add abstracted NI signal/terminal named constants

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: This change adds abstracted constants for National Instruments terminal/signal names. Some background: There have been significant confusions over the past many years for users when trying to understand how to connect to/from signals and terminals o

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 9, 2016 11:18 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org > Cc: gre...@linuxfoundation.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Jake Oshins ; Hadden > Hoppert ; Vit

Re: [PATCH] staging: rtl8192e: Fix checkpatch warnings

2016-11-10 Thread Greg KH
On Thu, Nov 10, 2016 at 09:32:30PM +0530, Y M Patil wrote: > This patch fixes block comment coding style warnings. > And added new line after variable declaration. > > Signed-off-by: Y M Patil Also, I need a "full" name please... thanks, greg k-h ___

Re: [PATCH] staging: rtl8192e: Fix checkpatch warnings

2016-11-10 Thread Greg KH
On Thu, Nov 10, 2016 at 09:32:30PM +0530, Y M Patil wrote: > This patch fixes block comment coding style warnings. > And added new line after variable declaration. Please only do one-thing-per-patch. If you have to say "And", that's a huge hint that this should be broken up into multiple patches.

[PATCH] staging: rtl8192e: Fix checkpatch warnings

2016-11-10 Thread Y M Patil
This patch fixes block comment coding style warnings. And added new line after variable declaration. Signed-off-by: Y M Patil --- drivers/staging/rtl8192e/dot11d.c | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 3 ++- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging

Re: [PATCH v2 1/3] vmbus: add support for dynamic device id's

2016-11-10 Thread Greg KH
On Mon, Oct 17, 2016 at 12:29:59PM -0700, Stephen Hemminger wrote: > From: Stephen Hemminger > > This patch adds sysfs interface to dynamically bind new UUID values > to existing VMBus device. This is useful for generic UIO driver to > act similar to uio_pci_generic. > > Signed-off-by: Stephen H

[PATCH v4] staging: lustre: mdc: manage number of modify RPCs in flight

2016-11-10 Thread James Simmons
From: Gregoire Pichon This patch is the main client part of a new feature that supports multiple modify metadata RPCs in parallel. Its goal is to improve metadata operations performance of a single client, while maintening the consistency of MDT reply reconstruction and MDT recovery mechanisms.

Re: [PATCH 01/15] staging: comedi: tests: add unittest framework for comedi

2016-11-10 Thread Ian Abbott
On 12/10/16 12:05, Spencer E. Olson wrote: Adds a framework for unittests for comedi drivers. It was certainly possible to write some unit tests before and test various aspects of a particular driver, but this framework makes this a bit easier and hopefully inspires more unittest modules to be w

Re: [PATCH v2 2/2] Staging: fsl-mc: include: mc: Kernel type 's32' preferred over 'int32_t'

2016-11-10 Thread Greg KH
On Thu, Nov 10, 2016 at 03:53:31PM +0100, Shiva Kerdel wrote: > Follow the kernel type preferrences of using 's32' over 'int32_t'. > > Signed-off-by: Shiva Kerdel > Acked-by: Stuart Yoder > --- > drivers/staging/fsl-mc/include/mc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) The ch

Re: [PATCH v2 1/2] Staging: fsl-mc: include: mc: Kernel type 's16' preferred over 'int16_t'

2016-11-10 Thread Greg KH
On Thu, Nov 10, 2016 at 03:53:30PM +0100, Shiva Kerdel wrote: > Follow the kernel type preferrences of using 's16' over 'int16_t'. > > Signed-off-by: Shiva Kerdel > Acked-by: Stuart Yoder > --- > Changes for v2: > - corrected an error in the log message, wrote 's32' instead of 's16'. > Chang

[PATCH v2] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-10 Thread Arnd Bergmann
James Simmons reports: > The ldlm_pool field pl_recalc_time is set to the current > monotonic clock value but the interval period is calculated > with the wall clock. This means the interval period will > always be far larger than the pl_recalc_period, which is > just a small interval time period.

Re: [lustre-devel] [PATCH] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-10 Thread Arnd Bergmann
On Thursday, November 10, 2016 1:21:08 PM CET Greg Kroah-Hartman wrote: > > > > the intention here is simply to have the console log keep the > > same numbers as "date +%s" for absolute values. The patch that > > James suggested converting everything to ktime_get_seconds() > > would result in the

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

2016-11-10 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: Stuart Yoder [mailto:stuart.yo...@nxp.com] > Sent: Friday, October 21, 2016 9:02 AM > To: gre...@linuxfoundation.org > Cc: German Rivera ; de...@driverdev.osuosl.org; > linux-ker...@vger.kernel.org; ag...@suse.de; a...@arndb.de; Leo Li > ; Roy Pledge ; Roy Ple

[PATCH v2 1/2] Staging: fsl-mc: include: mc: Kernel type 's16' preferred over 'int16_t'

2016-11-10 Thread Shiva Kerdel
Follow the kernel type preferrences of using 's16' over 'int16_t'. Signed-off-by: Shiva Kerdel Acked-by: Stuart Yoder --- Changes for v2: - corrected an error in the log message, wrote 's32' instead of 's16'. Changes for v3: - added the missing annotate of v2. --- drivers/staging/fsl-mc

[PATCH v2 2/2] Staging: fsl-mc: include: mc: Kernel type 's32' preferred over 'int32_t'

2016-11-10 Thread Shiva Kerdel
Follow the kernel type preferrences of using 's32' over 'int32_t'. Signed-off-by: Shiva Kerdel Acked-by: Stuart Yoder --- drivers/staging/fsl-mc/include/mc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include

Re: [PATCH v2 1/2] Staging: fsl-mc: include: mc: Kernel type 's16' preferred over 'int16_t'

2016-11-10 Thread Shiva Kerdel
I corrected the log message because I wrote 's32' instead of 's16' in this patch (confused with the other one that I sent too). Thank you for your guidance, Shiva Kerdel On 11/10/16 15:20, Greg KH wrote: On Thu, Nov 10, 2016 at 03:09:07PM +0100, Shiva Kerdel wrote: Follow the kernel type pre

Re: [PATCH v2 1/2] Staging: fsl-mc: include: mc: Kernel type 's16' preferred over 'int16_t'

2016-11-10 Thread Greg KH
On Thu, Nov 10, 2016 at 03:09:07PM +0100, Shiva Kerdel wrote: > Follow the kernel type preferrences of using 's16' over 'int16_t'. > > Signed-off-by: Shiva Kerdel > Acked-by: Stuart Yoder > --- > drivers/staging/fsl-mc/include/mc-bus.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH] staging: lustre: lov: Fix signed wrap around when decrementing index 'i'

2016-11-10 Thread Colin King
From: Colin Ian King Change predecrement compare to post decrement compare to avoid an unsigned integer wrap-around comparisomn when decrementing in the while loop. Issue found with static analysis with CoverityScan, CID 1375917 Signed-off-by: Colin Ian King --- drivers/staging/lustre/lustre/

[PATCH v2 2/2] Staging: fsl-mc: include: mc: Kernel type 's32' preferred over 'int32_t'

2016-11-10 Thread Shiva Kerdel
Follow the kernel type preferrences of using 's32' over 'int32_t'. Signed-off-by: Shiva Kerdel Acked-by: Stuart Yoder --- drivers/staging/fsl-mc/include/mc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include

  1   2   >