Re: [PATCH v3 2/2] leds: Add driver for NCP5623 3-channel I2C LED driver

2016-09-18 Thread Jacek Anaszewski
Hi Florian, Thanks for the updated patch set. I have few comments below. On 09/16/2016 01:34 PM, Florian Vaussard wrote: The NCP5623 is a 3-channel LED driver from On Semiconductor controlled through I2C. The PWM of each channel can be independently set with 32 distinct levels. In addition, the

Re: [PATCH v2 0/4] gpio: fix an incorrect lockdep warning

2016-09-18 Thread Peter Rosin
On 2016-09-16 19:58, Wolfram Sang wrote: > >>> Looks good from my POV, but will wait for Peter to comment. >>> >>> If accepted, I'd think this should go via my I2C tree and I would like >>> to ask Linus to ack patch 4. D'accord, everyone? >> >> Since it is not clear if "Peter" is me or PeterZ (I s

Re: [PATCH 2/5] ipc/sem: rework task wakeups

2016-09-18 Thread Davidlohr Bueso
On Sun, 18 Sep 2016, Manfred Spraul wrote: + Why this empty line? That's my fat fingers, will remove it. + } + + sem_unlock(sma, locknum); + rcu_read_unlock(); + wake_up_q(&wake_q); + + goto

[PATCH] spi: bcm-qspi: fix build error

2016-09-18 Thread Sudip Mukherjee
While building m68k allmodconfig, the build was failing with the error: drivers/spi/spi-bcm-qspi.c:1300:13: error: 'bcm_qspi_suspend' undeclared here (not in a function) .suspend = bcm_qspi_suspend, drivers/spi/spi-bcm-qspi.c:1301:13: error: 'bcm_qspi_resume' undeclared here (not in a function)

Re: [PATCH net-next 2/3] r8152: support ECM mode

2016-09-18 Thread kbuild test robot
Hi Hayes, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hayes-Wang/r8152-configuration-setting/20160907-192351 config: i386-randconfig-x0-09182136 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the att

Re: [RFC PATCH] x86: Do not panic if mce=2 is passed

2016-09-18 Thread Borislav Petkov
On Fri, Sep 16, 2016 at 08:28:44PM +, Luck, Tony wrote: > > For UE recovery support, current we need mce=2 in command line > > and also disable panic_on_oops with sysctl. > > Please explain. I've never given mce=2 on command line, and have > had my kernel recover from thousands of (injected) U

Re: [PATCH v3) posix-timers: make it configurable

2016-09-18 Thread Nicolas Pitre
On Sun, 18 Sep 2016, Richard Cochran wrote: > On Sun, Sep 18, 2016 at 12:54:58PM -0400, Nicolas Pitre wrote: > > > > +config PTP_1588_CLOCK_DEFAULT > > > > + tristate > > > > > > I see what this option is doing, but I wonder about the name > > > "DEFAULT". In what sense is this a default?

Re: [RFC PATCH v2 1/2] ARM: dts: samsung: add rga-lvds panel in itop elite

2016-09-18 Thread Krzysztof Kozlowski
On Sun, Sep 18, 2016 at 10:27:38PM +0800, Randy Li wrote: > It is actually a lvds panel connected through a rga-lvds bridge. > The touchscreen is communicated with i2c bus but the driver is not > support now. > > Signed-off-by: Randy Li Subject: ARM: dts: exynos > --- > arch/arm/boot/dts/exyno

Re: [PATCH -next] drm/sun4i: backend: remove redundant dev_err call in sun4i_backend_bind()

2016-09-18 Thread Maxime Ripard
On Thu, Sep 15, 2016 at 03:25:58AM +, Wei Yongjun wrote: > From: Wei Yongjun > > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > > Signed-off-by: Wei Yongjun Queued, thanks! Maxime -- Maxime Ripard, Free El

[PATCH] Staging: rts5208: rtsx_card.c: Fixed brace style issues

2016-09-18 Thread Cathal Mullaney
Fixed several minor brace coding style issues. Signed-off-by: Cathal Mullaney --- drivers/staging/rts5208/rtsx_card.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_card.c b/drivers/staging/rts5208/rtsx_card.c index

Re: [RFC PATCH v2 1/2] ARM: dts: samsung: add rga-lvds panel in itop elite

2016-09-18 Thread Krzysztof Kozlowski
On Sun, Sep 18, 2016 at 09:03:48PM +0200, Krzysztof Kozlowski wrote: > On Sun, Sep 18, 2016 at 10:27:38PM +0800, Randy Li wrote: > > It is actually a lvds panel connected through a rga-lvds bridge. > > The touchscreen is communicated with i2c bus but the driver is not > > support now. > > > > Sign

Re: [PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI

2016-09-18 Thread Maxime Ripard
Hi, On Thu, Sep 15, 2016 at 11:13:59PM +0800, Chen-Yu Tsai wrote: > The 18 or 24 bit parallel RGB LCD panel interface found on Allwinner > SoCs matches the description of MIPI DPI. Declare the RGB encoder and > connector as MIPI DPI. Unfortunately, even it that patch might be true (is there a pub

[PATCH 3/5] ipc/sem: optimize perform_atomic_semop()

2016-09-18 Thread Davidlohr Bueso
This is the main workhorse that deals with semop user calls such that the waitforzero or semval update operations, on the set, can complete on not as the sma currently stands. Currently, the set is iterated twice (setting semval, then backwards for the sempid value). Slowpaths, and particularly SEM

[PATCH 5/5] ipc/sem: use proper list api for pending_list wakeups

2016-09-18 Thread Davidlohr Bueso
... saves some LoC and looks cleaner than re-implementing the calls. Acked-by: Manfred Spraul Signed-off-by: Davidlohr Bueso --- ipc/sem.c | 38 +- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/ipc/sem.c b/ipc/sem.c index 89adba51e85f..e7da9

[PATCH -next v2 0/5] ipc/sem: semop(2) improvements

2016-09-18 Thread Davidlohr Bueso
Changes from v1 (https://lkml.org/lkml/2016/9/12/266) - Got rid of the signal_pending check in wakeup fastpath. (patch 2) - Added read/access once to queue.status (we're obviously concerned about lockless access upon unrelated events, even if on the stack). - Got rid of initializing wake_q and wak

[PATCH 4/5] ipc/sem: explicitly inline check_restart

2016-09-18 Thread Davidlohr Bueso
The compiler already does this, but make it explicit. This helper is really small and also used in update_queue's main loop, which is O(N^2) scanning. Inline and avoid the function overhead. Signed-off-by: Davidlohr Bueso --- ipc/sem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/5] ipc/sem: rework task wakeups

2016-09-18 Thread Davidlohr Bueso
Our sysv sems have been using the notion of lockless wakeups for a while, ever since 0a2b9d4c796 (ipc/sem.c: move wake_up_process out of the spinlock section), in order to reduce the sem_lock hold times. This in-house pending queue can be replaced by wake_q (just like all the rest of ipc now), in t

[PATCH 1/5] ipc/sem: do not call wake_sem_queue_do() prematurely

2016-09-18 Thread Davidlohr Bueso
... as this call should obviously be paired with its _prepare() counterpart. At least whenever possible, as there is no harm in calling it bogusly as we do now in a few places. Immediate error semop(2) paths that are far from ever having the task block can be simplified and avoid a few unnecessary

Re: [PATCH 3/4] drm/sun4i: dotclock: Allow divider = 127

2016-09-18 Thread Maxime Ripard
On Thu, Sep 15, 2016 at 11:14:01PM +0800, Chen-Yu Tsai wrote: > The dot clock divider is 7 bits wide, and the divider range is 1 ~ 127, > or 6 ~ 127 if phase offsets are used. The 0 register value also > represents a divider of 1 or bypass. > > Make the end condition of the for loop inclusive of 1

Re: [PATCH 2/4] drm/sun4i: dotclock: Fix clock rate read back calcation

2016-09-18 Thread Maxime Ripard
On Thu, Sep 15, 2016 at 11:14:00PM +0800, Chen-Yu Tsai wrote: > When reading back the divider set in the register, we mask off the > bits that aren't part of the divider. Unfortunately the mask used > here was not converted from the field width. > > Fix this by converting the field width to a prop

Re: [PATCH v7 1/3] ARM: dts: Add TOPEET itop core board SCP package version

2016-09-18 Thread Krzysztof Kozlowski
On Sun, Sep 18, 2016 at 10:01:17PM +0800, Randy Li wrote: > The TOPEET itop is a samsung exnynos 4412 core board, which have > two package versions. This patch add the support for SCP version. > > Currently supported are USB3503A HSIC, USB OTG, eMMC, rtc and > PMIC. The future features are in the

[ANNOUNCE] Git User's Survey 2016

2016-09-18 Thread Jakub Narębski
Hello all, Git is distributed version control system, created for Linux kernel development by Linus Torvalds. Maintainership of Git was soon passed to Junio C Hamano. Chances are, if you are Linux kernel developer, you are using Git. We would like to ask you a few questions about your use of the

Re: [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate

2016-09-18 Thread Maxime Ripard
Hi, On Thu, Sep 15, 2016 at 11:14:02PM +0800, Chen-Yu Tsai wrote: > With display pixel clocks we want to have the closest possible clock > rate, to minimize timing and refresh rate skews. Whether the actual > clock rate is higher or lower than the requested rate is less important. > > Also check

Re: [PATCH v3 2/2] iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8

2016-09-18 Thread Jonathan Cameron
On 15/09/16 15:51, William Breathitt Gray wrote: > The ACCES 104-QUAD-8 is a general purpose quadrature encoder > counter/interface board. The 104-QUAD-8 is capable of monitoring the > outputs of eight encoders via four on-board LSI/CSI LS7266R1 24-bit > dual-axis quadrature counter chips. Core fun

Re: [PATCH v3 1/2] iio: Implement counter channel type and info constants

2016-09-18 Thread Jonathan Cameron
On 15/09/16 15:50, William Breathitt Gray wrote: > Quadrature encoders, such as rotary encoders and linear encoders, are > devices which are capable of encoding the relative position and > direction of motion of a shaft. This patch introduces several IIO > constants for supporting quadrature encode

Re: [PATCH v7 2/3] ARM: dts: add TOPEET itop elite based board

2016-09-18 Thread Krzysztof Kozlowski
On Sun, Sep 18, 2016 at 10:01:18PM +0800, Randy Li wrote: > The TOPEET itop exynos 4412 have three versions base board. The > Elite version is the cheap one without too much peripheral devices > on it. > > Currently supported are serial console, wired networking(USB), > USB OTG in peripheral mode,

Re: [GIT PULL] fixes for v4.8-rc7

2016-09-18 Thread Al Viro
On Sun, Sep 18, 2016 at 10:20:23AM -0700, Guenter Roeck wrote: > Hi Linus, > > Please consider pulling fixes for Linux v4.8-rc7 from signed tag: > > git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git > fixes-for-linus-v4.8-rc7 ACKed-by: Al Viro

[PATCH soc/next] ARM: BCM53573: Add custom init_time with arch timer workaroud

2016-09-18 Thread Rafał Miłecki
From: Rafał Miłecki BCM53573 uses ARM architected timer but CFE (bootloader) is bugged and doesn't setup hardware properly. As the architecture requirement clock should be enabled and CNTFRQ should be set before starting Linux. Unfortunately it's impossible to have CFE fixed and updated on all r

Re: [PATCH v4] MIPS: bcm63xx: let clk_disable() return immediately if clk is NULL

2016-09-18 Thread Florian Fainelli
Le 18/09/2016 à 11:04, Masahiro Yamada a écrit : > In many of clk_disable() implementations, it is a no-op for a NULL > pointer input, but this is one of the exceptions. > > Making it treewide consistent will allow clock consumers to call > clk_disable() without NULL pointer check. > > Signed-off

Re: [PATCH] checkpatch: Minimize checkpatch induced patches...

2016-09-18 Thread Christian Borntraeger
On 09/14/2016 08:33 PM, Greg KH wrote: > On Wed, Sep 14, 2016 at 08:16:55PM +0200, Christian Borntraeger wrote: >> On 09/14/2016 08:06 PM, Joe Perches wrote: >>> On Wed, 2016-09-14 at 19:56 +0200, Christian Borntraeger wrote: >>> This will certainly help to reduce the noise. On the other hand

Re: [PATCH v2 0/4] gpio: fix an incorrect lockdep warning

2016-09-18 Thread Bartosz Golaszewski
2016-09-18 10:52 GMT+02:00 Peter Rosin : > On 2016-09-16 19:58, Wolfram Sang wrote: >> >> Same here. And if it prevents us from false positive lockdep reports, I >> am all for fixing it. > > Except it doesn't, when I think some more about it... > > If you have two gpio-expanders on the same depth b

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

2016-09-18 Thread James Simmons
> We get 1 warning when building kernel with W=1: > drivers/staging/lustre/lustre/lmv/lmv_obd.c:2774:5: warning: no previous > prototype for 'lmv_pack_md' [-Wmissing-prototypes] > > In fact, this function is not declared in any file,but should be > declared in a header file, thus can be recogniz

Re: [PATCH v2 0/4] gpio: fix an incorrect lockdep warning

2016-09-18 Thread Bartosz Golaszewski
2016-09-18 21:43 GMT+02:00 Bartosz Golaszewski : > 2016-09-18 10:52 GMT+02:00 Peter Rosin : >> On 2016-09-16 19:58, Wolfram Sang wrote: >>> >>> Same here. And if it prevents us from false positive lockdep reports, I >>> am all for fixing it. >> >> Except it doesn't, when I think some more about it.

Re: [PATCH 2/2 v2] x86/e820: Use much less memory for e820/e820_saved, save up to 120k

2016-09-18 Thread Andy Lutomirski
On Sep 18, 2016 8:11 AM, "Denys Vlasenko" wrote: > > On 09/18/2016 10:31 AM, Ingo Molnar wrote: >> >> * Denys Vlasenko wrote: >>> >>> On 09/15/2016 09:04 AM, Ingo Molnar wrote: * Denys Vlasenko wrote: > The maximum size of e820 map array for EFI systems is defined as > E82

Re: [PATCH v4 1/3] ASoC: sun4i-codec: rename sun4i_codec_widgets for consistency

2016-09-18 Thread Maxime Ripard
On Thu, Sep 15, 2016 at 06:36:28PM +0200, Danny Milosavljevic wrote: > ASoC: sun4i-codec: Rename "sun4i_codec_widgets" to "sun4i_codec_controls" for > consistency with the struct field name. > > Signed-off-by: Danny Milosavljevic Acked-by: Maxime Ripard Thanks! -- Maxime Ripard, Free Electro

Re: [PATCH v4 2/3] ASoC: rename some sun7i-only registers

2016-09-18 Thread Maxime Ripard
On Thu, Sep 15, 2016 at 06:36:29PM +0200, Danny Milosavljevic wrote: > ASoC: sun4i-codec: Some of the registers are sun7i-only. That line is useless, you already have the commit title. > > Therefore rename "SUN4I_CODEC_SYS_VERI" to "SUN7I_CODEC_AC_DAC_CAL" and > rename "SUN4I_CODEC_AC_MIC_PHONE_

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

2016-09-18 Thread nayeem
On Friday 16 September 2016 01:30 PM, Dilger, Andreas wrote: On Sep 15, 2016, at 12:33, nayeem wrote: On Wednesday 14 September 2016 10:44 AM, Dilger, Andreas wrote: On Sep 12, 2016, at 04:27, Greg KH wrote: On Fri, Sep 09, 2016 at 08:50:35PM +0530, Nayeemahmed Badebade wrote: Added __ac

Re: [PATCH v3) posix-timers: make it configurable

2016-09-18 Thread Richard Cochran
On Sun, Sep 18, 2016 at 02:49:08PM -0400, Nicolas Pitre wrote: > Who should merge this patch? John, I guess. Or do we need acks from the driver maintainers? In that case, please post to netdev, and then davem can merge it. Thanks, Richard

Re: [PATCH v4 3/3] ASoC: sun4i-codec: Add custom regmap configs

2016-09-18 Thread Maxime Ripard
On Thu, Sep 15, 2016 at 06:36:30PM +0200, Danny Milosavljevic wrote: > ASoC: sun4i-codec: The A20 has a few extra registers that the A10 > doesn't have. > Therefore, use different regmaps for A10 as compared to A20. Same comment with the commit log. > > Signed-off-by: Danny Milosavljevic > ---

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

2016-09-18 Thread Dilger, Andreas
On Sep 18, 2016, at 14:21, nayeem wrote: > On Friday 16 September 2016 01:30 PM, Dilger, Andreas wrote: >> On Sep 15, 2016, at 12:33, nayeem wrote: >>> On Wednesday 14 September 2016 10:44 AM, Dilger, Andreas wrote: On Sep 12, 2016, at 04:27, Greg KH wrote: > > On Fri, Sep 09, 2016

Re: [PATCH v3) posix-timers: make it configurable

2016-09-18 Thread Nicolas Pitre
On Sun, 18 Sep 2016, Richard Cochran wrote: > On Sun, Sep 18, 2016 at 02:49:08PM -0400, Nicolas Pitre wrote: > > Who should merge this patch? > > John, I guess. Or do we need acks from the driver maintainers? In > that case, please post to netdev, and then davem can merge it. I don't think the

Re: [PATCH] staging: lustre: lmv: mark symbols static where possible

2016-09-18 Thread Dilger, Andreas
On Sep 17, 2016, at 06:04, Baoyou Xie wrote: > > We get a few warnings when building kernel with W=1: > drivers/staging/lustre/lustre/lmv/lmv_obd.c:1640:1: warning: no previous > prototype for 'lmv_locate_target_for_name' [-Wmissing-prototypes] > drivers/staging/lustre/lustre/lmv/lmv_obd.c:2421:

[PATCH 003/124] staging: lustre: ldlm: fix a use after free in ldlm_resource_get()

2016-09-18 Thread James Simmons
From: John L. Hammond If lvbo initialization has failed then save the return status (from lr_lvb_len) before putting the resource. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5305 Reviewed-on: http://review.whamcloud.com/11017 Reviewed-by: Andreas Dilger

[PATCH 013/124] staging: lustre: osc: update kms in brw_interpret() properly

2016-09-18 Thread James Simmons
From: Niu Yawei In brw_interpret(), we forgot page offset when calculating write offset, that leads to wrong kms for sync write. Signed-off-by: Niu Yawei Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5463 Reviewed-on: http://review.whamcloud.com/11374 Reviewed-by: Bobi Jam Reviewed-by: J

Re: [PATCH] net: hns: add function declarations in hns_dsaf_mac.h

2016-09-18 Thread Arnd Bergmann
On Sunday, September 18, 2016 5:11:36 PM CEST Baoyou Xie wrote: > We get 2 warnings when building kernel with W=1: > drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:246:6: warning: no > previous prototype for 'hns_dsaf_srst_chns' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_d

[PATCH 015/124] staging: lustre: clio: lu_ref_del() mismatch ref add scope

2016-09-18 Thread James Simmons
From: Bobi Jam 'commit 77605e41a26f ("staging/lustre/clio: add pages into writeback cache in batches")' adds a page to a list aggregate issuing them to writeback cache; A page add is referenced in llite/vvp io scope, while writeback cache commit de-refers it under osc sub io scope, and enabling -

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

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

[PATCH 011/124] staging: lustre: llite: update ras stride offset

2016-09-18 Thread James Simmons
From: Bobi Jam When a read ahead does not reach the end of the region reserved from ras, we'd set ras::ras_next_readahead back to where we left off; For stride read ahead, it needs to make sure that the offset is no less than ras_stride_offset, so that the stride read ahead can work correctly. S

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

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

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

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

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

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

[PATCH 002/124] staging: lustre: ptlrpc: enlarge OST_MAXREQSIZE for 4MB RPC

2016-09-18 Thread James Simmons
From: Li Xi This patch enlarges OST_MAXREQSIZE so as to make the request size large enough for 4MB RPC. Signed-off-by: Li Xi Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4755 Reviewed-on: http://review.whamcloud.com/9599 Reviewed-by: Andreas Dilger Reviewed-by: Jinshan Xiong Reviewed-b

[PATCH 029/124] staging: lustre: ldlm: restore some of the interval functionality

2016-09-18 Thread James Simmons
Earlier a bunch of interval handling got removed since it wasn't used by the upstream client. Now some of it is needed again for the client code so this patch restores what is needed. Signed-off-by: James Simmons --- .../staging/lustre/lustre/include/interval_tree.h | 26 + drivers/stagin

[PATCH 028/124] staging: lustre: ldlm: resend AST callbacks

2016-09-18 Thread James Simmons
From: Vitaly Fertman While clients will resend client->server RPCs, servers would not resend server->client RPCs such as LDLM callbacks (blocking or completion callbacks/ASTs). This could result in clients being evicted from the server if blocking callbacks were dropped by the network (a failed

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

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

[PATCH 018/124] staging: lustre: obdclass: fix comparison between signed and unsigned

2016-09-18 Thread James Simmons
From: Dmitry Eremin Make lu_buf->lb_len unsigned. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5417 Reviewed-on: http://review.whamcloud.com/11281 Reviewed-by: Fan Yong Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: James Simmons ---

[PATCH 024/124] staging: lustre: remove RCU2HANDLE macro

2016-09-18 Thread James Simmons
From: John L. Hammond Remove RCU2HANDLE macro from lustre_handles.h. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/11498 Reviewed-by: Andreas Dilger Reviewed-by: Bob Glossman Signed-off-by: James Simmons ---

[PATCH 052/124] staging: lustre: lmv: add testing for bad name hash

2016-09-18 Thread James Simmons
From: Fan Yong Enable testing of the lfsck recovery feature in the client code for the case when name hash for some entry becomes corrupt. Signed-off-by: Fan Yong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5519 Reviewed-on: http://review.whamcloud.com/11846 Reviewed-by: Alex Zhuravlev

[PATCH 070/124] staging: lustre: statahead: small fixes and cleanup

2016-09-18 Thread James Simmons
From: Lai Siyao small fixes: * when 'unplug' is set for ll_statahead(), sa_put() shouldn't kill the entry found, because its inflight RPC may not finish yet. * remove 'sai_generation', add 'lli_sa_generation' because the former one is not safe to access without lock. * revalidate_statahe

[PATCH 031/124] staging: lustre: vvp: Use lockless __generic_file_aio_write

2016-09-18 Thread James Simmons
From: Prakash Surya Testing multi-threaded single shard file write performance has shown the inode mutex to be a limiting factor when using the generic_file_write_iter function. To work around this bottle neck, this change replaces the locked version of that call with the lock less version, speci

[PATCH 050/124] staging: lustre: ldlm: per-export lock callback timeout

2016-09-18 Thread James Simmons
From: Vitaly Fertman The lock callback timeout is calculated as an average per namespace. This does not reflect individual client behavior. Instead, we should calculate it on a per-export basis. This is the client side changes for upstream client. Signed-off-by: Vitaly Fertman Intel-bug-id: ht

[PATCH 032/124] staging: lustre: llite: remove lookup_flags from ll_lookup_it()

2016-09-18 Thread James Simmons
From: John L. Hammond Remove the effectively unused lookup_flags parameter from ll_lookup_it(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/10769 Reviewed-by: Yang Sheng Reviewed-by: Lai Siyao Reviewed-by: Ol

[PATCH 042/124] staging: lustre: obd: change type of lmv_tgt_desc->ltd_idx to u32

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

[PATCH 049/124] staging: lustre: lmv: move some inline functions to lustre_lmv.h

2016-09-18 Thread James Simmons
From: Fan Yong Move some inline code out of lmv core into lustre_lmv.h. This is to prepare for use outside of the lmv layer in the future of these functions. Change from passing in struct lmv_stripe_md to just int for lmv_is_known_hash_type. Signed-off-by: Fan Yong Intel-bug-id: https://jira.hp

[PATCH 033/124] staging: lustre: llite: remove mode from ll_create_it()

2016-09-18 Thread James Simmons
From: John L. Hammond Remove the unused mode parameter from ll_create_it(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/10769 Reviewed-by: Yang Sheng Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin Signed-of

[PATCH 036/124] staging: lustre: llite: no need to check dentry is NULL

2016-09-18 Thread James Simmons
From: John L. Hammond We are already touching dentry in CDEBUG macros so it will crash long before these checks. Since this is the case no need to do an additional check. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud

[PATCH 059/124] staging: lustre: at: net AT after connect

2016-09-18 Thread James Simmons
From: Alexander Boyko Once connected, the previously gathered AT statistics is not valid anymore because may reflect other routing, etc. The connect by itself could take a long time due to different reasons (e.g. server was not ready) and net latency got very high (see import_select_connection())

[PATCH 086/124] staging: lustre: obdclass: eliminate NULL error return

2016-09-18 Thread James Simmons
From: Bob Glossman Always return an ERR_PTR() on errors, never return a NULL, in lu_object_find_slice(). Also clean up callers who no longer need special case handling of NULL returns. Signed-off-by: Bob Glossman Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5858 Reviewed-on: http://revi

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

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

[PATCH 088/124] staging: lustre: ldlm: Recalculate interval in ldlm_pool_recalc()

2016-09-18 Thread James Simmons
From: Nathaniel Clark Instead of rechecking a static value, recalculate to see if pool stats need to be updated. Add newline so message will print instead of warning about missing newline. Signed-off-by: Nathaniel Clark Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4536 Reviewed-on: http:

[PATCH 089/124] staging: lustre: obd: change brw_page->count to unsigned

2016-09-18 Thread James Simmons
From: Dmitry Eremin Pages count is unsigned. So, change the type accordant usage. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577 Reviewed-on: http://review.whamcloud.com/12378 Reviewed-by: John L. Hammond Reviewed-by: James Simmons Reviewed-by: Oleg Drok

[PATCH 075/124] staging: lustre: recovery: don't replay closed open

2016-09-18 Thread James Simmons
From: Niu Yawei To avoid scanning the replay open list every time in the ptlrpc_free_committed(), the fix of LU-2613 (4322e0f9) changed the ptlrpc_free_committed() to skip the open list unless the import generation is changed. That introduced a race which could make a closed open being replayed:

[PATCH 084/124] staging: lustre: fiemap: set FIEMAP_EXTENT_LAST correctly

2016-09-18 Thread James Simmons
From: Bobi Jam When we've collected enough extents as user requested, we'd check one further to decide whether we've reached the last extent of the file. Signed-off-by: Bobi Jam Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5933 Reviewed-on: http://review.whamcloud.com/12781 Reviewed-by:

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

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

[PATCH 077/124] staging: lustre: ptlrpc: quiet errors on initial connection

2016-09-18 Thread James Simmons
From: Andreas Dilger It may be that a client or MDS is trying to connect to a target (OST or peer MDT) before that target is finished setup. Rather than spamming the console logs during initial connection, only print a console error message if there are repeated failures trying to connect to the

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

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

[PATCH 074/124] staging: lustre: changelog: Proper record remapping

2016-09-18 Thread James Simmons
From: Henri Doreau Fixed changelog_remap_rec() to correctly remap records emitted with jobid_var=disabled, i.e. delivered by new servers but with no jobid field. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5862 Reviewed-on: http://review.whamcloud.com/12574 R

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

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

[PATCH 069/124] staging: lustre: fix messages with missing newlines

2016-09-18 Thread James Simmons
From: John L. Hammond Restore the trailing newline in the definition of OSC_DUMP_GRANT(). Remove an unnecessary CDEBUG() from ldlm_pool_recalc(). Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5551 Reviewed-on: http://review.whamcloud.com/11996 Reviewed-by: J

[PATCH 004/124] staging: lustre: lmv: honor MDT index when creating volatile file

2016-09-18 Thread James Simmons
From: wang di LMV should honor MDT index embedded in the name of volatile file, then during hsm restore, the file under striped dir can be restored to the right MDT. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4691 Reviewed-on: http://review.whamcloud.com/10866 Re

[PATCH 021/124] staging: lustre: build: bump build version warnings to x.y.53

2016-09-18 Thread James Simmons
From: Andreas Dilger Move the LUSTRE_VERSION_CODE checks to trigger on x.y.53 instead of x.y.50, so that it is into the development cycle that they are hit instead of right at the start. In many cases, the #warning has been removed (to prevent build errors) and instead the code is just disabled

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<    1   2   3   4   5   >