Re: staging: ks7010: Delete unnecessary uses of the variable "retval"

2016-07-21 Thread Wolfram Sang
> Do you find such a source code transformation useful? No. I already gave that answer by agreeing to Julia's viewpoint. signature.asc Description: PGP signature

Re: [V2, 2/2] crypto: vmx - Convert to CPU feature based module autoloading

2016-07-21 Thread Michael Ellerman
On Tue, 2016-19-07 at 04:03:53 UTC, Alastair D'Silva wrote: > From: Alastair D'Silva > > This patch utilises the GENERIC_CPU_AUTOPROBE infrastructure > to automatically load the vmx_crypto module if the CPU supports > it. > > Signed-off-by: Alastair D'Silva

Re: [V2,1/2] powerpc: Add module autoloading based on CPU features

2016-07-21 Thread Michael Ellerman
On Tue, 2016-19-07 at 04:03:52 UTC, Alastair D'Silva wrote: > From: Alastair D'Silva > > This patch provides the necessary infrastructure to allow drivers > to be automatically loaded via UDEV. It implements the minimum > required to be able to use module_cpu_feature_match

Re: [1/1] powerpc/mm: Add memory barrier in __hugepte_alloc()

2016-07-21 Thread Michael Ellerman
On Tue, 2016-05-04 at 19:05:47 UTC, Sukadev Bhattiprolu wrote: > >From f7b73c6b4508fe9b141a43d92be2f9dd7d3c4a58 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Thu, 24 Mar 2016 02:07:57 -0400 > Subject: [PATCH 1/1] powerpc/mm: Add memory barrier in

Re: [Intel-gfx] [Announcement] 2016-Q2 release of XenGT - a Mediated Graphics Passthrough Solution from Intel

2016-07-21 Thread Jike Song
Hi all, We are pleased to announce another update of Intel GVT-g for Xen. Intel GVT-g is a full GPU virtualization solution with mediated pass-through, starting from 4th generation Intel Core(TM) processors with Intel Graphics processors. A virtual GPU instance is maintained for each VM, with

4.7.0-rc7+: Oops during boot with USB pen drive inserted

2016-07-21 Thread Chris Clayton
Hi, With Linus' latest and greatest, I get an opps when I boot my laptop with a pen drive inserted in any USB port. The oops message is: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2) The oops seems to be 100% repeatable. If a USB pen drive is not inserted, the

Re: [PATCH 3/4] media: Add Mediatek MDP Driver

2016-07-21 Thread Minghsiu Tsai
On Mon, 2016-07-18 at 14:18 +0200, Hans Verkuil wrote: > On 07/14/2016 02:18 PM, Minghsiu Tsai wrote: > > Add MDP driver for MT8173 > > > > Signed-off-by: Minghsiu Tsai > > --- > > drivers/media/platform/Kconfig| 16 + > >

Re: [PATCH] powernv: Use __printf in pe_level_printk

2016-07-21 Thread kbuild test robot
Hi, [auto build test ERROR on v4.7-rc7] [also build test ERROR on next-20160721] [cannot apply to powerpc/next] [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/Joe-Perches/powernv-Use-__printf

Re: [kernel-hardening] [PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-21 Thread Andy Lutomirski
On 07/21/2016 09:43 PM, valdis.kletni...@vt.edu wrote: On Mon, 11 Jul 2016 13:53:36 -0700, Andy Lutomirski said: This avoids pointless races in which another CPU or task might see a partially populated global pgd entry. These races should normally be harmless, but, if another CPU propagates

[PATCH v2] iio: humidity: hdc100x: add triggered buffer support for HDC100X

2016-07-21 Thread Alison Schofield
Triggered buffer support uses the HDC100X's dual acquisition mode to read both humidity and temperature in one shot. Signed-off-by: Alison Schofield Cc: Daniel Baluta --- Changes in v2: Thanks for the review Peter - switched endianness from

Re: [PATCH v3 3/3] mac80211: mesh: fixed HT ies in beacon template

2016-07-21 Thread Masashi Honma
On 2016年07月14日 05:07, Yaniv Machani wrote: + + /* if channel width is 20MHz - configure HT capab accordingly*/ + if (sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20) { + cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; + cap &=

Re: [PATCH v6 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-07-21 Thread Wu, Songjun
On 7/21/2016 16:41, Hans Verkuil wrote: On 07/21/2016 10:14 AM, Songjun Wu wrote: The Image Sensor Controller driver includes two parts. 1) Driver code to implement the ISC function. 2) Device tree binding documentation, it describes how to add the ISC in device tree. Test result with

Re: [PATCH v6 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-07-21 Thread Wu, Songjun
On 7/21/2016 17:13, Hans Verkuil wrote: On 07/21/2016 10:14 AM, Songjun Wu wrote: Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-21 Thread Andy Lutomirski
On Thu, Jul 21, 2016 at 8:30 PM, Josh Poimboeuf wrote: > On Thu, Jul 21, 2016 at 03:32:32PM -0700, Andy Lutomirski wrote: >> On Thu, Jul 21, 2016 at 2:21 PM, Josh Poimboeuf wrote: >> > Now that we can find pt_regs registers in the middle of the stack due

Re: [kernel-hardening] [PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-21 Thread Valdis . Kletnieks
On Mon, 11 Jul 2016 13:53:36 -0700, Andy Lutomirski said: > This avoids pointless races in which another CPU or task might see a > partially populated global pgd entry. These races should normally > be harmless, but, if another CPU propagates the entry via > vmalloc_fault and then populate_pgd

Re: [PATCH v4 2/2] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-21 Thread Dmitry Torokhov
Hi Lv, On Fri, Jul 22, 2016 at 12:24:50AM +, Zheng, Lv wrote: > Hi, Dmitry > > > Thanks for the review. > > > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > > Subject: Re: [PATCH v4 2/2] ACPI / button: Add document for ACPI control > > method lid device restrictions > > > > On

Re: DT connectors, thoughts

2016-07-21 Thread David Gibson
On Thu, Jul 21, 2016 at 05:14:33PM +0300, Pantelis Antoniou wrote: > Hi David, > > > On Jul 21, 2016, at 16:42 , David Gibson > > wrote: > > > > On Wed, Jul 20, 2016 at 11:59:44PM +0300, Pantelis Antoniou wrote: > >> Hi David, > >> > >> Spent some time looking at

Re: DT connectors, thoughts

2016-07-21 Thread David Gibson
On Thu, Jul 21, 2016 at 02:09:18PM -0500, Rob Herring wrote: > On Thu, Jul 21, 2016 at 9:14 AM, Pantelis Antoniou > wrote: > > Hi David, > > > >> On Jul 21, 2016, at 16:42 , David Gibson > >> wrote: > >> > >> On Wed, Jul 20, 2016 at

Re: DT connectors, thoughts

2016-07-21 Thread David Gibson
On Thu, Jul 21, 2016 at 02:15:57PM -0500, Rob Herring wrote: > On Mon, Jul 18, 2016 at 9:20 AM, David Gibson > wrote: > > Hi, > > > > Here's some of my thoughts on how a connector format for the DT could > > be done. Sorry it's taken longer than I hoped - I've been

Re: DT connectors, thoughts

2016-07-21 Thread David Gibson
On Thu, Jul 21, 2016 at 10:15:36PM +0300, Pantelis Antoniou wrote: > Hi Rob, > > > On Jul 21, 2016, at 22:09 , Rob Herring wrote: > > > > On Thu, Jul 21, 2016 at 9:14 AM, Pantelis Antoniou > > wrote: > >> Hi David, > >> > >>> On Jul 21,

Re: [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-21 Thread zhiyong tao
05969.html --- I will add this information in next version commit message. > Hi, > > [auto build test ERROR on robh/for-next] > [also build test ERROR on v4.7-rc7 next-20160721] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the s

Re: Question about group scheduler cpu shares

2016-07-21 Thread Mike Galbraith
On Thu, 2016-07-21 at 20:24 -0700, Gaurav Poothia wrote: (top posting.. naught naughty;) > 1.What is the function that translates from various nice levels to > weight i.e. nice(0) == 1024 how to translate for other levels If you rummage around in kernel/sched, you'll find this table: const int

[PATCH v3 1/3] ACPI / debugger: Add kernel flushing support

2016-07-21 Thread Lv Zheng
This patch adds debugger log flushing support in kernel via .ioctl() callback. The in-kernel flushing is more efficient, because it reduces useless log IOs by bypassing log user_read/kern_write during the flush period. Signed-off-by: Lv Zheng Cc: linux-...@vger.kernel.org ---

[PATCH v3 3/3] tools/power/acpi/acpidbg: Add multi-commands support in batch mode

2016-07-21 Thread Lv Zheng
This patch adds multi-commands support for the batch mode. The same mode can be seen in acpiexec. However people may think this is not useful for an in-kernel debugger, because the in-kernel debugger is always running, never exits. So we can run another command by running another acpidbg batch

[PATCH v3 2/3] tools/power/acpi/acpidbg: Use new flushing mechanism

2016-07-21 Thread Lv Zheng
This patch converts tools/power/acpi/tools/acpidbg/acpidbg to use the new flushing mechanism. Signed-off-by: Lv Zheng --- tools/power/acpi/tools/acpidbg/acpidbg.c | 51 -- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git

[PATCH v3 0/3] ACPI / debugger: Add kernel flushing support

2016-07-21 Thread Lv Zheng
AML debugger is implemented in the kernel as a character device located in the debugfs. Currently, when its batch mode is used, the userspace tool needs to flush the logs/prompts remained in the kernel output buffer, this is implemented in an inefficient way in the userspace by polling the IO and

[PATCH 56/58] staging: lustre: move ioctls to lustre_ioctl.h

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

[PATCH 54/58] staging: lustre: reorder LOV_MAGIC_* definition

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

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

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

[PATCH 57/58] staging: lustre: llite: add error handler in inode prepare phase

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

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

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

[PATCH 51/58] staging: lustre: lmv: cleanup req in lmv_getattr_name()

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

[PATCH 55/58] staging: lustre: ldlm: flock completion fixes.

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

Re: [PATCH] vfs:Fix memory leak on error path in get_empty_file

2016-07-21 Thread Al Viro
On Thu, Jul 21, 2016 at 10:53:37PM -0400, Nicholas Krause wrote: > This fixes a memory leak on the error path if the call to > security_file_alloc fails to run successfully as detected > in this trace by kmemleak: > [ 321.783718] ath9k :03:00.0 eth0: renamed from wlan0 > [ 330.960024] atl1c

[PATCH 45/58] staging: lustre: simplify inline functions in lustre_fid.h

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

[PATCH 47/58] staging: lustre: lmv: lookup remote migrating object in LMV

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

[PATCH 53/58] staging: lustre: obdclass: unified flow control interfaces

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

[PATCH 48/58] staging: lustre: lmv: Ensure lmv_intent_lookup cleans up reqp

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

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

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

[PATCH 49/58] staging: lustre: llite: avoid a deadlock in page write

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

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

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

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

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

[PATCH 46/58] staging: lustre: lmv: access lum_stripe_offset as little endian

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

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

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

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

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

[PATCH] update sc->nr_reclaimed after each shrink_slab

2016-07-21 Thread Zhou Chengming
In !global_reclaim(sc) case, we should update sc->nr_reclaimed after each shrink_slab in the loop. Because we need the correct sc->nr_reclaimed value to see if we can break out. Signed-off-by: Zhou Chengming --- mm/vmscan.c |5 + 1 files changed, 5

[PATCH 40/58] staging: lustre: llite: a few fixes for migration.

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

[PATCH 41/58] staging: lustre: mdc: fixup MDS_SWAP_LAYOUTS ELC handling

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

[PATCH 43/58] staging: lustre: const correct FID/OSTID/... helpers

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

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-21 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 09:23:02AM +1000, Stephen Rothwell wrote: > Hi Arnaldo, > > On Thu, 21 Jul 2016 10:12:48 -0300 Arnaldo Carvalho de Melo > wrote: > > > > Em Thu, Jul 21, 2016 at 09:29:50AM +1000, Stephen Rothwell escreveu: > > > Hi Arnaldo, > > > > > > On Tue, 19 Jul

[PATCH 35/58] staging: lustre: add ability to migrate inodes.

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

[PATCH 38/58] staging: lustre: llite: enable clients to inject error for lfsck

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

[PATCH 32/58] staging: lustre: delete striped directory

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

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

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

Crypto Fixes for 4.7

2016-07-21 Thread Herbert Xu
Hi Linus: This push fixes a sporadic build failure in the qat driver. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Jan Stancek (1): crypto: qat - make qat_asym_algs.o depend on asn1 headers drivers/crypto/qat/qat_common/Makefile |1 +

[PATCH 31/58] staging: lustre: llite: fix "getdirstripe" to show stripe info

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

[PATCH 34/58] staging: lustre: obdclass: bug fixes for lu_device_type handling

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

[PATCH 36/58] staging: lustre: lmv: fix issue found by Klocwork Insight tool

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

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-21 Thread Josh Poimboeuf
On Thu, Jul 21, 2016 at 03:32:32PM -0700, Andy Lutomirski wrote: > On Thu, Jul 21, 2016 at 2:21 PM, Josh Poimboeuf wrote: > > Now that we can find pt_regs registers in the middle of the stack due to > > an interrupt or exception, we can print them. Here's what it looks > >

[PATCH 30/58] staging: lustre: create striped directory

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

Re: [PATCH] cpufreq: export cpufreq_driver_resolve_freq()

2016-07-21 Thread Viresh Kumar
On 21-07-16, 19:24, Steve Muckle wrote: > Export cpufreq_driver_resolve_freq() since governors may be compiled as > modules. > > Reported-by: Stephen Rothwell > Signed-off-by: Steve Muckle > --- > drivers/cpufreq/cpufreq.c | 1 + > 1 file changed, 1

[PATCH 27/58] staging: lustre: lmv: change handling of lmv striping information

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

[PATCH 29/58] staging: lustre: lmv: replace obd_free_memmd with lmv_free_memmd

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

Re: [PATCH] rcu_sync: simplify the state machine, introduce __rcu_sync_enter()

2016-07-21 Thread Paul E. McKenney
On Thu, Jul 21, 2016 at 07:34:36PM +0200, Oleg Nesterov wrote: > On 07/20, Paul E. McKenney wrote: > > > > On Wed, Jul 20, 2016 at 07:16:03PM +0200, Oleg Nesterov wrote: > > > > > Now, suppose we add the additional enter/exit's: > > > > > > freeze_super(sb) > > > { > > > // this

[PATCH 28/58] staging: lustre: lmv: remove lmv_get_easize

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

[PATCH 22/58] staging: lustre: llite: pass inode to ll_release_page

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

[PATCH 26/58] staging: lustre: lmv: remove duplicate MAX_HASH_*

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

[PATCH 20/58] staging: lustre: llite: remove comment from ll_dir_read

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

Re: Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
Thanks Mike. So if I understand you right - tasks on interior nodes get their weight from task's nice level and not from some cpu.share setting. Two followups: 1.What is the function that translates from various nice levels to weight i.e. nice(0) == 1024 how to translate for other levels 2.How

[PATCH 18/58] staging: lustre: llite: do post work for statahead in readdir case

2016-07-21 Thread James Simmons
From: wang di Increase the post-work for the statahead thread in the readdir case since it can become very busy. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906 Reviewed-by:

[PATCH 25/58] staging: lustre: lmv: remove unused lmv_get_mea function

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

[PATCH 19/58] staging: lustre: llite: add md_op_data parameter to ll_get_dir_page

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

[PATCH 12/58] staging: lustre: llite: handle done flags differently in ll_dir_read

2016-07-21 Thread James Simmons
From: wang di Invert the done flag test to reduce the code indentation. If done is true release the page and break out of the while loop. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id:

[PATCH 17/58] staging: lustre: llite: pass in __u64 pos for ll_dir_read

2016-07-21 Thread James Simmons
From: wang di Some cases we want to preserve the ctx->pos value or use a different value altogther. So allow the passing in of a position offset to ll_dir_read. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id:

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

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

[PATCH 23/58] staging: lustre: llite: change remove parameter to bool

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

[PATCH 16/58] staging: lustre: llite: remove code never called

2016-07-21 Thread James Simmons
From: wang di We have if (1) conditionals which is pointless so remove it and the next code block is never called so remove that as well. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id:

[PATCH 11/58] staging: lustre: llite: set next only when needed in ll_dir_read

2016-07-21 Thread James Simmons
From: wang di The variable next needs only to be set when done is false. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906 Reviewed-by: John L. Hammond

[PATCH 13/58] staging: lustre: llite: change done flag in ll_dir_read to bool

2016-07-21 Thread James Simmons
From: wang di Change the done flag from integer to bool. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906 Reviewed-by: John L. Hammond Reviewed-by:

[PATCH 21/58] staging: lustre: llite: style cleanup for llite_internal.h

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

Re: [PATCH 03/19] x86/dumpstack: remove unnecessary stack pointer arguments

2016-07-21 Thread Brian Gerst
On Thu, Jul 21, 2016 at 9:41 PM, Josh Poimboeuf wrote: > On Thu, Jul 21, 2016 at 02:56:52PM -0700, Andy Lutomirski wrote: >> On Thu, Jul 21, 2016 at 2:21 PM, Josh Poimboeuf wrote: >> > When calling show_stack_log_lvl() or dump_trace() with a regs

[PATCH 15/58] staging: lustre: llite: clarify some debug messages for statahead

2016-07-21 Thread James Simmons
From: wang di Make some of the error reporting more clear for the statahead thread startup and is_first_dirent() function. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531

[PATCH 06/58] staging: lustre: mdc: handle IT_READDIR operations

2016-07-21 Thread James Simmons
From: wang di The readdir operations lock was incomplete. This patch fills in the missing pieces. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 08/58] staging: lustre: llite: pass struct md_op_data to ll_dir_read

2016-07-21 Thread James Simmons
From: wang di Add struct md_op_data as a parameter to ll_dir_read. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 14/58] staging: lustre: llite: rename some variables for ll_dir_read

2016-07-21 Thread James Simmons
From: wang di The variables api32 and hash64 was renamed to is_api32 and is_hash64. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 10/58] staging: lustre: llite: reduce indent in ll_dir_read

2016-07-21 Thread James Simmons
From: wang di Instead of making a large chunk of code conditional based on if a page is valid we reverse the page validity test and exit the loop if the page is invalid instead. This allows a section of code to reduce its indentation one level. Signed-off-by: wang di

[PATCH 04/58] staging: lustre: llite: cache directory striping information

2016-07-21 Thread James Simmons
From: wang di Cache directory striping information that the clients receive from the metadata servers. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L.

[PATCH 03/58] staging: lustre: ptlrpc: remove wirecheck for struct lmv_stripe_md

2016-07-21 Thread James Simmons
From: wang di Remove the wiretest check for this data structure. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

2016-07-21 Thread Xunlei Pang
On 2016/07/21 at 22:46, Juri Lelli wrote: > On 21/07/16 15:36, Juri Lelli wrote: >> On 21/07/16 15:21, Juri Lelli wrote: >>> Hi, >>> >>> On 18/07/16 21:37, Xunlei Pang wrote: On 2016/07/18 at 21:04, Juri Lelli wrote: > On 15/07/16 18:39, Xunlei Pang wrote: >> On 2016/07/13 at 18:58,

[PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-21 Thread Xishi Qiu
Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone, we cannot offline the whole node, because some kernel memory can't be migrated. So if we offline a node with movable zone, use

[PATCH 00/58] staging: lustre: bug fixes from lustre 2.5.[56-58]

2016-07-21 Thread James Simmons
Here is the next batch of fixes and cleanups that went into Lustre from versions 2.5.56 up to 2.5.58. Besides those changes the patches for LU-3531/LU-4906 were broken into several smaller patches as required for the staging tree. The rest of the patches here are minor fixes and some removal of

[PATCH 05/58] staging: lustre: lmv: add new lmv structures

2016-07-21 Thread James Simmons
From: wang di Newer lustre version on metadata servers support different version of lmv magic. This add the new data structures to handle these new lmv magic versions. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id:

[PATCH 01/58] staging: lustre: obd: expand op_cli_flags

2016-07-21 Thread James Simmons
From: wang di Add new flags for metadata handling. These flags are related to DNE2 handling. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

[PATCH 07/58] staging: lustre: llite: label the debug info

2016-07-21 Thread James Simmons
From: wang di We report the inode size but never print in the debug message that the number reported is the size. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by:

[PATCH 09/58] staging: lustre: llite: remove debug message in ll_dir_read

2016-07-21 Thread James Simmons
From: wang di Remove debug message and struct ll_inode_info. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/10761 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906 Reviewed-by: John L. Hammond Reviewed-by:

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-21 Thread Michael Ellerman
Thiago Jung Bauermann writes: > Am Freitag, 15 Juli 2016, 18:03:35 schrieb Thiago Jung Bauermann: >> Am Freitag, 15 Juli 2016, 22:26:09 schrieb Arnd Bergmann: >> > However, the powerpc specific RTAS runtime services provide a similar >> > interface to the UEFI

[PATCH 02/58] staging: lustre: obd: rename struct lmv_stripe_md field mea to lmv

2016-07-21 Thread James Simmons
From: wang di Rename struct lmv_stripe_md in struct lustre_md from mea to lmv. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531 Reviewed-by: John L. Hammond

Re: Question about group scheduler cpu shares

2016-07-21 Thread Mike Galbraith
On Thu, 2016-07-21 at 18:18 -0700, Gaurav Poothia wrote: > > ROOT > > > > > + -Group1(3072) > > >| > > > +- A(2048) > > >| > > >+- B(1024) > > > > > +- Group2(2048) > > | > > +-C(1024) > > | > > +-D(1024) > > > > Say I add a task E to Group1's task list (note

Re: [PATCH] s390/perf: fix 'start' address of module's map

2016-07-21 Thread Songshan Gong
Has the patch been accepted by upstream? 在 7/21/2016 11:10 AM, Song Shan Gong 写道: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of '.text' section. In most archs, it's OK. But for s390, it

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-21 Thread Stefan Lippers-Hollmann
Hi On 2016-07-20, Arnd Bergmann wrote: > On Wednesday, July 20, 2016 11:33:43 AM CEST Jes Sorensen wrote: > > Arnd Bergmann writes: > > > On Wednesday, July 20, 2016 7:25:19 AM CEST Jes Sorensen wrote: > > >> Arnd Bergmann writes: [...] > Yes, I was just

  1   2   3   4   5   6   7   8   >