Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (3 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/infiniband/ulp/ipoib/ipoib_cm.c

    r25370 r31869  
    14791479        ret = ipoib_set_mode(dev, buf);
    14801480
    1481         rtnl_unlock();
    1482 
    1483         if (!ret)
    1484                 return count;
    1485 
    1486         return ret;
     1481        /* The assumption is that the function ipoib_set_mode returned
     1482         * with the rtnl held by it, if not the value -EBUSY returned,
     1483         * then no need to rtnl_unlock
     1484         */
     1485        if (ret != -EBUSY)
     1486                rtnl_unlock();
     1487
     1488        return (!ret || ret == -EBUSY) ? count : ret;
    14871489}
    14881490
Note: See TracChangeset for help on using the changeset viewer.