• Y
    tipc: adjust locking policy of subscription · a13683f2
    Ying Xue 提交于
    Currently subscriber's lock protects not only subscriber's subscription
    list but also all subscriptions linked into the list. However, as all
    members of subscription are never changed after they are initialized,
    it's unnecessary for subscription to be protected under subscriber's
    lock. If the lock is used to only protect subscriber's subscription
    list, the adjustment not only makes the locking policy simpler, but
    also helps to avoid a deadlock which may happen once creating a
    subscription is failed.
    Signed-off-by: NYing Xue <ying.xue@windriver.com>
    Reviewed-by: NJon Maloy <jon.maloy@ericson.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    a13683f2
subscr.c 10.6 KB