Re: [PATCH] staging: lustre: o2iblnd: replace space indentation with tabs

2016-11-06 Thread Greg KH
On Mon, Nov 07, 2016 at 03:55:36AM +, James Simmons wrote: > > > On Mon, 2016-11-07 at 02:02 +, James Simmons wrote: > > > > This patch fixes all CODE_INDENT checkpatch errors in o2iblnd. > > > Reviewed-by: James Simmons > > [] > > > > diff --git

Re: [lustre-devel] [PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-11-06 Thread Oleg Drokin
On Nov 4, 2016, at 4:37 AM, Aya Mahfouz wrote: > > On Thu, Nov 3, 2016 at 1:05 AM, Dilger, Andreas > wrote: > On Oct 25, 2016, at 10:47, Aya Mahfouz wrote: > > > > On Mon, Oct 17, 2016 at 10:38:31PM +, Dilger, Andreas wrote: > >>

Re: [lustre-devel] [PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-11-06 Thread James Simmons
> On Thu, Nov 3, 2016 at 1:05 AM, Dilger, Andreas > wrote: > On Oct 25, 2016, at 10:47, Aya Mahfouz > wrote: > > > > On Mon, Oct 17, 2016 at 10:38:31PM +, Dilger, Andreas wrote: > >> On Oct 17, 2016, at

Re: [PATCH 2/2] staging: lustre: obdclass: Add handling of error returned by lustre_cfg_new

2016-11-06 Thread James Simmons
> On Nov 6, 2016, at 12:11 PM, Christophe JAILLET wrote: > > > 'lustre_cfg_new()' can return ERR_PTR(-ENOMEM). > > Handle these errors and propagate the error code to the callers. > > > > Error handling has been rearranged in 'lustre_process_log()' with the > > addition of a label in order to

Re: [PATCH] staging: lustre: o2iblnd: replace space indentation with tabs

2016-11-06 Thread James Simmons
> On Mon, 2016-11-07 at 02:02 +, James Simmons wrote: > > > This patch fixes all CODE_INDENT checkpatch errors in o2iblnd. > > Reviewed-by: James Simmons > [] > > > diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c > > >

Re: [PATCH 22/29] staging: lustre: llite: add LL_IOC_FUTIMES_3

2016-11-06 Thread James Simmons
> On Thu, Oct 27, 2016 at 06:11:56PM -0400, James Simmons wrote: > > From: John L. Hammond > > > > Add a new regular file ioctl LL_IOC_FUTIMES_3 similar to futimes() but > > which allows setting of all three inode timestamps. Use this ioctl > > during HSM restore to

Re: [PATCH] staging: lustre: o2iblnd: replace space indentation with tabs

2016-11-06 Thread Joe Perches
On Mon, 2016-11-07 at 02:02 +, James Simmons wrote: > > This patch fixes all CODE_INDENT checkpatch errors in o2iblnd. > Reviewed-by: James Simmons [] > > diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c > >

Re: [PATCH] staging: lustre: o2iblnd: replace space indentation with tabs

2016-11-06 Thread James Simmons
> This patch fixes all CODE_INDENT checkpatch errors in o2iblnd. Reviewed-by: James Simmons > Signed-off-by: Nicholas Hanley > --- > .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c| 2 +- >

Re: [PATCH v2] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-06 Thread James Simmons
> Removed redundant declaration of variable 'tx' in local scope > Fixed: sparse warning: > socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one > socklnd_cb.c:2435:25: originally declared here Reviewed-by: James Simmons > Signed-off-by: Andrew Kanner

Re: [PATCH 12/14] staging/lustre/llite: update ras window correctly

2016-11-06 Thread James Simmons
> From: Bobi Jam > > When stride-RA hit case miss, we only reset normal sequential > read-ahead window, but not reset the stride IO to avoid the overhead > of re-detecting stride IO. While when the normal RA window is set > to not insect with the stride-RA window, when we

Re: [PATCH 11/14] staging/lustre/ptlrpc: Correctly calculate hrp->hrp_nthrs

2016-11-06 Thread James Simmons
On Wed, 2 Nov 2016, Oleg Drokin wrote: > From: Amir Shehata > > cpu_pattern can specify exactly 1 cpu in a partition: > "0[0]". That means CPT0 will have CPU 0. CPU 0 can have > hyperthreading enabled. This combination would result in > > weight =

Re: [PATCH 09/14] staging/lustre/ptlrpc: Suppress error for flock requests

2016-11-06 Thread James Simmons
> From: Patrick Farrell > > -EAGAIN is a normal return when requesting POSIX flocks. > We can't recognize exactly that case here, but it's the > only case that should result in -EAGAIN on LDLM_ENQUEUE, so > don't print to console in that case. Reviewed-by: James Simmons

Re: [PATCH 13/14] staging/lustre/llite: do not clear uptodate bit in page delete

2016-11-06 Thread James Simmons
> From: Jinshan Xiong > > Otherwise, if the race between page fault and truncate occurs, it > will cause the page fault routine to return an EIO error. > > In filemap_fault() { > page_not_uptodate: > ... > ClearPageError(page); > error =

Re: [PATCH 14/14] staging/lustre: Get rid of LIBLUSTRE_CLIENT and its users

2016-11-06 Thread James Simmons
> This define only made sense in a userspace library client, not in the kernel. Reviewed-by: James Simmons > Signed-off-by: Oleg Drokin > --- > drivers/staging/lustre/lustre/include/lustre_lib.h | 2 -- >

Re: [PATCH 10/14] staging/lustre/llite: protect from accessing NULL lli_clob

2016-11-06 Thread James Simmons
> From: Bobi Jam > > Need to check file's lli_clob object before calling > lov_read_and_clear_async_rc(). Reviewed-by: James Simmons > Signed-off-by: Bobi Jam > Reviewed-by: Jinshan Xiong >

Re: [PATCH 08/14] staging/lustre/ldlm: engage ELC for all ldlm enqueue req

2016-11-06 Thread James Simmons
> From: Hongchao Zhang > > If there is no request passed into ldlm_cli_enqueue, the enqueue > request will not engage ELC to drop unneeded locks. currently, > this kind of request is mainly related to EXTENT locks enqueue > requests (except for glimpse EXTENT lock for

Re: [PATCH 06/14] staging/lustre/llite: drop_caches hangs in cl_inode_fini()

2016-11-06 Thread James Simmons
> From: Andrew Perepechko > > This patch releases cl_pages on error in ll_write_begin() > to avoid memory and object reference leaks. Also, it > reuses per-cpu lu_env in ll_invalidatepage() in the same > way as done in ll_releasepage(). Reviewed-by: James Simmons

Re: [PATCH 07/14] staging/lustre/ldlm: Reinstate ldlm_enqueue_pack()

2016-11-06 Thread James Simmons
> The function becomes used again with the next patch, so bring it back > from dead, only this time make it static. Reviewed-by: James Simmons > Reverts: bf2a033360f7 ("staging/lustre/ldlm: Remove unused > ldlm_enqueue_pack()") > Signed-off-by: Oleg Drokin

Re: [PATCH 05/14] staging/lustre: Get rid of cl_env hash table

2016-11-06 Thread James Simmons
> From: Jinshan Xiong > > cl_env hash table is under heavy contention when there are lots of > processes doing IO at the same time; > reduce lock contention by replacing cl_env cache with percpu array; > remove cl_env_nested_get() and cl_env_nested_put(); > remove

Re: [PATCH 03/14] staging/lustre: conflicting PW & PR extent locks on a client

2016-11-06 Thread James Simmons
> From: Andriy Skulysh > > PW lock isn't replayed once a lock is marked > LDLM_FL_CANCELING and glimpse lock doesn't wait for > conflicting locks on the client. So the server will > grant a PR lock in response to the glimpse lock request, > which conflicts with the

Hello...Urgent Pls ..

2016-11-06 Thread Dr. Andrea Thompson
Dear, I'm Dr. Andrea Thompson, I'm seeking for investment opportunities around the globe and wonder if you can be of assistance. Basically, all I need from you is sincerity, authenticity, integrity protection, virtue, accountability and honor which brings trust in business. As you already

Re: [PATCH 01/14] staging/lustre/ldlm: Drop unused blocking_refs flock field

2016-11-06 Thread James Simmons
> blocking_refs is only used on the server, so drop it on the client. Reviewed-by: James Simmons > Signed-off-by: Oleg Drokin > --- > drivers/staging/lustre/lustre/include/lustre_dlm.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git

Re: [PATCH 04/14] staging/lustre/llite: clear inode timestamps after losing UPDATE lock

2016-11-06 Thread James Simmons
> From: Niu Yawei > > Otherwise, those leftovers would interfere with new timestamps > especially when the timestamps are set back in time on the other > clients. Reviewed-by: James Simmons > Signed-off-by: Jinshan Xiong

Re: [PATCH 02/14] staging/lustre/ldlm: fix export reference problem

2016-11-06 Thread James Simmons
> From: Hongchao Zhang > > 1, in client_import_del_conn, the export returned from >class_conn2export is not released after using it. > > 2, in ptlrpc_connect_interpret, the export is not released >if the connect_flags isn't compatible. Reviewed-by: James

[PATCH] Staging: fsl-mc: Changed allocation types into the types that the kernel prefers

2016-11-06 Thread Shiva Kerdel
Fixed reports from checkpatch that pointed out that the code was not using the preferred types of the kernel. Signed-off-by: Shiva Kerdel --- drivers/staging/fsl-mc/bus/dpmcp.h | 80 - drivers/staging/fsl-mc/include/mc-bus.h | 4 +-

[PATCH V3 06/14] Drivers: hv: vss: Improve log messages.

2016-11-06 Thread kys
From: Alex Ng Adding log messages to help troubleshoot error cases and transaction handling. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c | 25 +++-- 1 files

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

2016-11-06 Thread kys
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-by: Alex Ng Signed-off-by: K. Y.

[PATCH V3 14/14] Drivers: hv: vmbus: On the read path cleanup the logic to interrupt the host

2016-11-06 Thread kys
From: K. Y. Srinivasan Signal the host when we determine the host is to be signaled - on th read path. The currrent code determines the need to signal in the ringbuffer code and actually issues the signal elsewhere. This can result in the host viewing this interrupt as

[PATCH V3 07/14] Drivers: hv: vss: Operation timeouts should match host expectation

2016-11-06 Thread kys
From: Alex Ng Increase the timeout of backup operations. When system is under I/O load, it needs more time to freeze. These timeout values should also match the host timeout values more closely. Signed-off-by: Alex Ng Signed-off-by: K. Y.

[PATCH V3 04/14] Drivers: hv: balloon: Disable hot add when CONFIG_MEMORY_HOTPLUG is not set

2016-11-06 Thread kys
From: Alex Ng If the guest does not support memory hotplugging, it should respond to the host with zero pages added and successful result code. This signals to the host that hotplugging is not supported and the host will avoid sending future hot-add requests.

[PATCH V3 10/14] tools: hv: fix a compile warning in snprintf

2016-11-06 Thread kys
From: Weibing Zhang hv_kvp_daemon.c: In function .kvp_mac_to_if_name.: hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security] snprintf(dev_id, sizeof(dev_id), kvp_net_dir); ^ hv_kvp_daemon.c:705:2: warning: format not

[PATCH V3 05/14] Drivers: hv: balloon: Add logging for dynamic memory operations

2016-11-06 Thread kys
From: Alex Ng Added logging to help troubleshoot common ballooning, hot add, and versioning issues. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 31

[PATCH V3 03/14] Drivers: hv: utils: Fix the mapping between host version and protocol to use

2016-11-06 Thread kys
From: Alex Ng We should intentionally declare the protocols to use for every known host and default to using the latest protocol if the host is unknown or new. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan ---

[PATCH V3 13/14] Drivers: hv: vmbus: On write cleanup the logic to interrupt the host

2016-11-06 Thread kys
From: K. Y. Srinivasan Signal the host when we determine the host is to be signaled. The currrent code determines the need to signal in the ringbuffer code and actually issues the signal elsewhere. This can result in the host viewing this interrupt as spurious since the host

[PATCH V3 01/14] Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw() (v2)

2016-11-06 Thread kys
From: Vitaly Kuznetsov With wrap around mappings in place we can always provide drivers with direct links to packets on the ring buffer, even when they wrap around. Do the required updates to get_next_pkt_raw()/put_pkt_raw() The first version of this commit was reverted

[PATCH V3 09/14] tools: hv: remove unnecessary link flag

2016-11-06 Thread kys
From: Weibing Zhang The link flag pthread is not needed. Signed-off-by: Weibing Zhang Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git

[PATCH V3 12/14] Drivers: hv: vmbus: Base host signaling strictly on the ring state

2016-11-06 Thread kys
From: K. Y. Srinivasan One of the factors that can result in the host concluding that a given guest in mounting a DOS attack is if the guest generates interrupts to the host when the host is not expecting it. If these "spurious" interrupts reach a certain rate, the host can

[PATCH V3 11/14] tools: hv: remove unnecessary header files and netlink related code

2016-11-06 Thread kys
From: Weibing Zhang Remove unnecessary header files and netlink related code as the daemons do not use netlink to communicate with the kernel now. Signed-off-by: Weibing Zhang Signed-off-by: K. Y. Srinivasan ---

[PATCH V3 02/14] Drivers: hv: utils: reduce HV_UTIL_NEGO_TIMEOUT timeout

2016-11-06 Thread kys
From: Vitaly Kuznetsov I discovered that at least WS2016TP5 host has 60 seconds timeout for the ICMSGTYPE_NEGOTIATE message so we need to lower guest's timeout a little bit to make sure we always respond in time. Let's make it 55 seconds. Signed-off-by: Vitaly Kuznetsov

[PATCH V3 00/14] Drivers: hv: Some miscellaneous fixes and enhancements

2016-11-06 Thread kys
From: K. Y. Srinivasan Some miscellaneous fixes and enhancements. V2: Fixed a build issue reported by Greg. Only Patch # 13 is affected. V3: Address Stephen's comment. Only patch 3 is affected. Alex Ng (6): Drivers: hv: utils: Fix the mapping between host version and

[PATCH V3 00/14] Drivers: hv: Some miscellaneous fixes and enhancements

2016-11-06 Thread K. Y. Srinivasan
Some miscellaneous fixes and enhancements. V2: Fixed a build issue reported by Greg. Only Patch # 13 is affected. V3: Address Stephen's comment. Only patch 3 is affected. Alex Ng (6): Drivers: hv: utils: Fix the mapping between host version and protocol to use Drivers: hv: balloon:

Re: [PATCH 7/9] staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

2016-11-06 Thread Jonathan Cameron
On 06/11/16 14:23, Brian Masney wrote: > On Sun, Nov 06, 2016 at 12:03:53PM +, Jonathan Cameron wrote: >> On 03/11/16 12:56, Brian Masney wrote: >>> When updating the in_illuminance_calibscale and >>> in_illuminance_integration_time sysfs attributes, these values were not >>> actually written

Re: [PATCH 2/2] staging: lustre: obdclass: Add handling of error returned by lustre_cfg_new

2016-11-06 Thread Oleg Drokin
Hello! On Nov 6, 2016, at 12:11 PM, Christophe JAILLET wrote: > 'lustre_cfg_new()' can return ERR_PTR(-ENOMEM). > Handle these errors and propagate the error code to the callers. > > Error handling has been rearranged in 'lustre_process_log()' with the > addition of a label in order to free

[PATCH 2/2] staging: lustre: obdclass: Add handling of error returned by lustre_cfg_new

2016-11-06 Thread Christophe JAILLET
'lustre_cfg_new()' can return ERR_PTR(-ENOMEM). Handle these errors and propagate the error code to the callers. Error handling has been rearranged in 'lustre_process_log()' with the addition of a label in order to free some resources. Signed-off-by: Christophe JAILLET

[PATCH 1/2] staging: lustre: obdclass: Fix error handling

2016-11-06 Thread Christophe JAILLET
'lustre_cfg_new()' does not return NULL but ERR_PTR(-ENOMEM) So IS_ERR should be used to check the return value. Signed-off-by: Christophe JAILLET --- drivers/staging/lustre/lustre/obdclass/obd_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH 7/9] staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

2016-11-06 Thread Brian Masney
On Sun, Nov 06, 2016 at 12:03:53PM +, Jonathan Cameron wrote: > On 03/11/16 12:56, Brian Masney wrote: > > When updating the in_illuminance_calibscale and > > in_illuminance_integration_time sysfs attributes, these values were not > > actually written to the chip. The chip would continue to

[PATCH] Staging: speakup: Remove unnecessary space after cast

2016-11-06 Thread Shiva Kerdel
The affected files have been modified to remove redundant spaces after casts to solve checkpatch.pl checks. Signed-off-by: Shiva Kerdel --- drivers/staging/speakup/main.c | 42 ++--- drivers/staging/speakup/selection.c | 2 +-

Re: [PATCH 9/9] staging: iio: tsl2583: remove redundant write to the control register in taos_probe()

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > taos_probe() calls i2c_smbus_write_byte() to select the control > register, however there is no subsequent calls to i2c_smbus_read_byte(). > The write call is unnecessary and is removed by this patch. > > Verified that the driver still functions correctly

Re: [PATCH 8/9] staging: iio: tsl2583: check if chip is suspended in in_illuminance_calibrate_store

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > in_illuminance_calibrate_store() did not check to see if the chip is > suspended. This patch adds the proper check. The return value from > taos_als_calibrate() was also not checked in this function, so the > proper check was also added while changes are

Re: [PATCH 7/9] staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > When updating the in_illuminance_calibscale and > in_illuminance_integration_time sysfs attributes, these values were not > actually written to the chip. The chip would continue to use the old > parameters. Extracted out tsl2583_set_als_gain() and >

Re: [PATCH 6/9] staging: iio: tsl2583: remove redudant i2c call in taos_als_calibrate()

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > taos_als_calibrate() queries the control register to determine if the > unit is powered on and has the ADC enabled. It then queries the same > register a second time to determine if the ADC reading is valid. This > patch removes the redundant

Re: [PATCH 5/9] staging: iio: tsl2583: don't shutdown chip when updating the lux table

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > in_illuminance_lux_table_store() shuts down the chip, updates the > contents of the lux table, and then turns the chip back on. The values > in lux table are not used by the chip and are only used internally by > the driver. It is not necessary to change

Re: [PATCH 4/9] staging: iio: tsl2583: remove redundant power off sequence in taos_chip_on()

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > taos_chip_on() explicitly turns the sensor power on and then writes the > 8 registers that are stored in taos_config. The first register in > taos_config is the CONTROL register and the configuration is set to > turn the power off. The existing state

Re: [PATCH 3/9] staging: iio: tsl2583: fixed ordering of comments

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > in taos_defaults() > > The comments in taos_defaults() appear after the line of code > that they apply to. This patch moves the comments so that they appear > before the code. Some of the comments were updated to be more > informative. > > Signed-off-by:

Re: [PATCH 2/9] staging: iio: tsl2583: removed unused code from device probing

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > taos_probe() queries the all of the sensor's registers and loads all of > the values into a buffer stored on the stack. Only the chip ID register > was actually used. Change the probe function to just query the chip ID > register on the device. > >

Re: [PATCH 1/9] staging: iio: tsl2583: i2c_smbus_write_byte() / i2c_smbus_read_byte() migration

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > There were several places where the driver would first call > i2c_smbus_write_byte() to select the register on the device, and then > call i2c_smbus_read_byte() to get the contents of that register. The > code would look roughly like: > > /* Select

Re: [PATCH 1/9] staging: iio: tsl2583: i2c_smbus_write_byte() / i2c_smbus_read_byte() migration

2016-11-06 Thread Jonathan Cameron
On 03/11/16 12:56, Brian Masney wrote: > There were several places where the driver would first call > i2c_smbus_write_byte() to select the register on the device, and then > call i2c_smbus_read_byte() to get the contents of that register. The > code would look roughly like: > > /* Select

[PATCH] This is a patch to the capi.c file that fixes one instance of the following error: ERROR: do not use assignment in if condition

2016-11-06 Thread Naeil ZOUEIDI
Staging: i4l: act200: Signed-off-by: Naeil Zoueidi --- drivers/staging/i4l/act2000/capi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c index 62f5629..b494917 100644 ---

[PATCH 2/2] Adding a missing parenthesis to an assignment and fixing my first patch This patch is a fix to the error ERROR: do not use assignment in if condition found by the checkpatch tool

2016-11-06 Thread Naeil ZOUEIDI
Staging: i4l: act2000: Signed-off-by: Naeil ZOUEIDI --- drivers/staging/i4l/act2000/capi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c index b494917..62dee39 100644 ---

Re: [PATCH] This is a patch to the capi.c file that fixes one instance of the following error: ERROR: do not use assignment in if condition

2016-11-06 Thread kbuild test robot
-to-the-capi-c-file-that-fixes-one-instance-of-the-following-error-ERROR-do-not-use-assignment-in-if-condition/20161106-165820 config: i386-randconfig-x077-201645 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree