diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-05-04 02:36:47 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-04 19:04:01 (GMT) |
commit | a13683f292b2ce697f71fa3788a9335ebcb32676 (patch) | |
tree | 09672fe29b03cd8e43e8017089bb89beb6ef45a8 /drivers | |
parent | 00bc00a9384c306cdd48611a53b955d936349bf6 (diff) | |
download | linux-a13683f292b2ce697f71fa3788a9335ebcb32676.tar.xz |
tipc: adjust locking policy of subscription
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: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions