lkml.org 
[lkml]   [2018]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 024/165] hv_netvsc: cancel subchannel setup before halting device
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Stephen Hemminger <stephen@networkplumber.org>

    [ Commit a7483ec0267c69b34e818738da60b392623da94b upstream. ]

    Block setup of multiple channels earlier in the teardown
    process. This avoids possible races between halt and subchannel
    initialization.

    Suggested-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/hyperv/rndis_filter.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/net/hyperv/rndis_filter.c
    +++ b/drivers/net/hyperv/rndis_filter.c
    @@ -1340,6 +1340,9 @@ void rndis_filter_device_remove(struct h
    {
    struct rndis_device *rndis_dev = net_dev->extension;

    + /* Don't try and setup sub channels if about to halt */
    + cancel_work_sync(&net_dev->subchan_work);
    +
    /* Halt and release the rndis device */
    rndis_filter_halt_device(rndis_dev);


    \
     
     \ /
      Last update: 2018-05-24 13:22    [W:4.048 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site