• Ying Xue's avatar
    tipc: adjust locking policy of subscription · a13683f2
    Ying Xue authored
    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: default avatarYing Xue <ying.xue@windriver.com>
    Reviewed-by: default avatarJon Maloy <jon.maloy@ericson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a13683f2
subscr.c 10.6 KB