Re: [PATCH net-next] hv_netvsc: Implement batching of receive completions

2016-08-19 Thread David Miller
From: Haiyang Zhang Date: Fri, 19 Aug 2016 14:47:09 -0700 > From: Haiyang Zhang > > The existing code uses busy retry when unable to send out receive > completions due to full ring buffer. It also gives up retrying after limit > is reached, and causes receive buffer slots not being recycled. >

Re: [PATCH 0/7] staging: lustre: last missing patches for lustre 2.6

2016-08-19 Thread Joe Perches
On Fri, 2016-08-19 at 14:07 -0400, James Simmons wrote: > Resolved the last remain bug that prevented earlier submission. > This covers the remaining patches that were missing from the > upstream client that was in Lustre 2.6 except for the work for > LU-2484. The work for LU-2484 depends on the st

Re: [PATCH 0/7] staging: lustre: last missing patches for lustre 2.6

2016-08-19 Thread Joe Perches
On Fri, 2016-08-19 at 20:44 +0100, James Simmons wrote: > > 1: I'd like to see the lustre #include files separated into > >    only two internal/external directories akin to the > >    include/linux and include/uapi directories used by linux. [] > For the first question yes it is reasonable and dev

[PATCH net-next] hv_netvsc: Implement batching of receive completions

2016-08-19 Thread Haiyang Zhang
From: Haiyang Zhang The existing code uses busy retry when unable to send out receive completions due to full ring buffer. It also gives up retrying after limit is reached, and causes receive buffer slots not being recycled. This patch implements batching of receive completions. It also prevents

Re: [PATCH 0/7] staging: lustre: last missing patches for lustre 2.6

2016-08-19 Thread James Simmons
> On Fri, 2016-08-19 at 14:07 -0400, James Simmons wrote: > > Resolved the last remain bug that prevented earlier submission. > > This covers the remaining patches that were missing from the > > upstream client that was in Lustre 2.6 except for the work for > > LU-2484. The work for LU-2484 depend

[PATCH 0/7] staging: lustre: last missing patches for lustre 2.6

2016-08-19 Thread James Simmons
Resolved the last remain bug that prevented earlier submission. This covers the remaining patches that were missing from the upstream client that was in Lustre 2.6 except for the work for LU-2484. The work for LU-2484 depends on the stat infrastructure that was removed earlier from the upstream cli

[PATCH 2/7] staging: lustre: llite: move dir cache to MDC layer

2016-08-19 Thread James Simmons
From: wang di Move directory entries cache from llite to MDC, so client side dir stripe will use independent hash function(in LMV), which does not need to be tightly coupled with the backend storage dir-entry hash function. With striped directory, it will be 2-tier hash, LMV calculate hash value

[PATCH 7/7] staging: lustre: update version to 2.5.99

2016-08-19 Thread James Simmons
With all but one of the the missing patches from the lustre 2.6 version merged upstream its time to update the upstream clients version. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/include/lustre_ver.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 6/7] staging: lustre: obd: decruft md_enqueue() and md_intent_lock()

2016-08-19 Thread James Simmons
From: John L. Hammond Remove the lmm and lmmsize parameters from both functions, storing that data in md_op_data when needed. Remove the unused lookup_flags parameter from md_intent_lock(), and the unused reqp parameter from md_enqueue(). Add a union ldlm_policy_data * parameter to md_enqueue().

[PATCH 3/7] staging: lustre: obd: remove unused lmv_readpages()/mdc_readpage()

2016-08-19 Thread James Simmons
From: Jian Yu This patch fixes the following compile error by removing the dead codes: "error: 'xxx_readpages' defined but not used". Now that we have md_read_page functionality we can remove all the *_readpage implementations. Signed-off-by: Jian Yu Intel-bug-id: https://jira.hpdd.intel.com/br

[PATCH 1/7] staging: lustre: lmv: implement lmv version of read_page

2016-08-19 Thread James Simmons
From: wang di All the code needed to implement read_page. This will eventually replace lmv_readpage. 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: Andreas Dilger Reviewed

[PATCH 4/7] staging: lustre: mdt: add OBD_CONNECT_DIR_STRIPE flag

2016-08-19 Thread James Simmons
From: wang di Add OBD_CONNECT_DIR_STRIPE to tell if the client supports striped dir, so only new client (>= 2.6) can access striped directory. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4843 Reviewed-on: http://review.whamcloud.com/10773 Reviewed-by: Andreas Dilg

[PATCH 5/7] staging: lustre: obd: remove dead code

2016-08-19 Thread James Simmons
From: John L. Hammond Remove unused OBD functions: oti_alloc_cookies(), oti_free_cookies(), class_observe_import(), class_unobserve_import(), md_is_subdir(), md_readpage(), obdo2fid(), fid2obdo(). Remove several unused, get-only, and set-only structure members. Signed-off-by: John L. Hammond S

[PATCH] rtlwifi: Fix missing country code for Great Britain

2016-08-19 Thread Larry Finger
Some RTL8821AE devices sold in Great Britain have the country code of 0x25 encoded in their EEPROM. This value is not tested in the routine that establishes the regulatory info for the chip. The fix is to set this code to have the same capabilities as the EU countries. Signed-off-by: Larry Finger

[PATCH 0/3] staging: most: fix aim-cdev issues

2016-08-19 Thread Christian Gromm
This patch set is needed to fix issues of the aim-cdev module. Christian Gromm (3): staging: most: aim-cdev: fix reported error codes staging: most: aim-cdev: report error returned by alloc_chrdev_region staging: most: aim-cdev: relocate call to ida_init() drivers/staging/most/aim-cdev/cde

[PATCH 1/3] staging: most: aim-cdev: fix reported error codes

2016-08-19 Thread Christian Gromm
Currently, the aim-cdev is returning different error codes for the same root cause. This patch is needed to get rid of the module's inconsistency when reporting errors. Signed-off-by: Christian Gromm --- drivers/staging/most/aim-cdev/cdev.c | 19 +++ 1 file changed, 11 insertions

[PATCH 3/3] staging: most: aim-cdev: relocate call to ida_init()

2016-08-19 Thread Christian Gromm
This patch moves the initialization of the idr structure towards the end of the module's init routine. This keeps the code compact and eliminates the need of having to call ida_destroy() in case the function exits with an exception. Signed-off-by: Christian Gromm --- drivers/staging/most/aim-cde

[PATCH 2/3] staging: most: aim-cdev: report error returned by alloc_chrdev_region

2016-08-19 Thread Christian Gromm
This patch forwards the error code returned by function alloc_chrdev_region(). It is needed to stop the module from hiding the actual cause of failure. Signed-off-by: Christian Gromm --- drivers/staging/most/aim-cdev/cdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a

[PATCH 10/17] staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue

2016-08-19 Thread Christian Gromm
The "broken in pipe" handler of the USB-HDM calls most_stop_enqueue() to stop the MBO traffic before returning all MBOs back to the Mostcore. As the enqueue() call from the Mostcore may run in parallel with the most_stop_enqueue(), the HDM may run into the inconsistent state and crash the kernel.

[PATCH 17/17] staging: most: hdm-usb: add support for new USB gadget

2016-08-19 Thread Christian Gromm
This patch is needed to make the driver support Microchip's OS81210 USB MOST network interface controller. It simply adds the gadget's product ID to the driver's ID table. Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 5 - 1 file changed, 4 insertions(+), 1 dele

[PATCH 12/17] staging: most: hdm-usb: synchronize release of struct buf_anchor

2016-08-19 Thread Christian Gromm
In case a channel that is going to be destroyed has been tagged as not "healthy" by the function hdm_poison_channel() while the functions hdm_write_completion() or hdm_read_completion() are being executed, they race for destruction of buf_anchor. This patch fixes the problem. Signed-off-by: Andre

[PATCH 13/17] staging: most: hdm-usb: remove completion object

2016-08-19 Thread Christian Gromm
Waiting for the urb_compl object to complete evaluates always as false. This patch removes this unnecessary completion object. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(

[PATCH 16/17] staging: most: hdm-usb: remove unnecessary status assignment

2016-08-19 Thread Christian Gromm
The USB completion callbacks set the status field of an MBO object before scheduling the clear_work. This patch removes this redundant assignment as the work_struct does the same for all MBOs. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb

[PATCH 07/17] staging: most: hdm-usb: make use of is_channel_healthy flag

2016-08-19 Thread Christian Gromm
This patch makes the write completion handler use the is_channel_healthy flag to prevent the hdm from scheduling a second clear_halt workqueue in case an endpoint reported a STALL condition. Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 3 +++ 1 file changed, 3 inse

[PATCH 15/17] staging: most: hdm-usb: init variables at declaration time

2016-08-19 Thread Christian Gromm
This patch initializes variables by the time they are declared. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 72 +++--- 1 file changed, 23 insertions(+), 49 deletions(-) diff --git a/drivers/staging/most/

[PATCH 08/17] staging: most: hdm-usb: remove redundant conditions

2016-08-19 Thread Christian Gromm
This patch removes the duplication of the expression (urb->status == -ENOENT || urb->status == -ECONNRESET). Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH 11/17] staging: most: hdm-usb: assign spinlock to local variable

2016-08-19 Thread Christian Gromm
This patch assigns the spinlock of struct mdev to local spinlock_t variable to get rid of all the ugly dereferencing. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 31 +++ 1 file changed, 19 insertions(+),

[PATCH 14/17] staging: most: hdm-usb: remove redundant parenthesis

2016-08-19 Thread Christian Gromm
This patch removes unnecessary parenthesis in boolean expressions. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 51 +- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/drivers/staging/mo

[PATCH 09/17] staging: most: hdm-usb: simplify initialization of mbo->status.

2016-08-19 Thread Christian Gromm
This patch simplifies the code that initializes mbo->status. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/staging/most/hdm-usb/hdm_usb.c b/driv

[PATCH 06/17] staging: most: hdm-usb: rename ID_INIC for consistency

2016-08-19 Thread Christian Gromm
In order to have a consistent naming convention this patch renames USB_DEV_ID_INIC to USB_DEV_ID_OS81118. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/st

[PATCH 04/17] staging: most: hdm-usb: stop core from submitting buffers in case of broken pipe

2016-08-19 Thread Christian Gromm
This patch ensures that no more packets are submitted by the core in case an USB endpoint has reported a broken pipe (-EPIPE). Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 01/17] staging: most: hdm-usb: remove unused macro HW_RESYNC

2016-08-19 Thread Christian Gromm
This patch removes the macro HW_RESYNC that is not used anymore. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/most/hdm-usb/hdm_usb.c b/drivers/staging/most/hdm-usb/hdm

[PATCH 03/17] staging: most: hdm-usb: fix clear halt processing

2016-08-19 Thread Christian Gromm
This patch is needed to ensure that submitted URBs get unlinked before the driver calls usb_clear_halt(). Since the halt condition of an USB endpoint is channel related, the work_struct is moved from a buffer basis to a channel basis. Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-u

[PATCH 02/17] staging: most: hdm-usb: provide MBO status when freeing buffers

2016-08-19 Thread Christian Gromm
This patch adds the additional status parameter to function free_anchored_buffers. This allows to dispatch further processing based on this flag. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 8 +--- 1 file changed, 5 insertions(+

[PATCH 00/17] staging: most: fix hdm-usb issues

2016-08-19 Thread Christian Gromm
This patch set is needed to fix issues of the hdm-usb module. Christian Gromm (17): staging: most: hdm-usb: remove unused macro HW_RESYNC staging: most: hdm-usb: provide MBO status when freeing buffers staging: most: hdm-usb: fix clear halt processing staging: most: hdm-usb: stop core from

[PATCH 05/17] staging: most: hdm-usb: add USB product id

2016-08-19 Thread Christian Gromm
This patch adds support for the OS81119 MOST network interface controller to the driver. Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/most/hdm-usb/hdm_usb.c b/drivers/staging/mos

Re: [PATCH 0/8] staging: most: fix hdm-usb issues

2016-08-19 Thread Greg KH
On Fri, Aug 19, 2016 at 09:55:33AM +0200, Christian Gromm wrote: > On Thu, 18 Aug 2016 17:18:56 +0200 > Greg KH wrote: > > > On Tue, Aug 16, 2016 at 04:10:26PM +0200, Christian Gromm wrote: > > > This patch set is needed to fix issues of the hdm-usb module. > > > > You sent me 2 patch series for

Re: [PATCH 0/8] staging: most: fix hdm-usb issues

2016-08-19 Thread Christian Gromm
On Thu, 18 Aug 2016 17:18:56 +0200 Greg KH wrote: > On Tue, Aug 16, 2016 at 04:10:26PM +0200, Christian Gromm wrote: > > This patch set is needed to fix issues of the hdm-usb module. > > You sent me 2 patch series for this same driver right now. One 9 > patches and one 8 patches. > > Which go