diff options
author | Ying Xue | 2015-05-04 10:36:47 +0800 |
---|---|---|
committer | David S. Miller | 2015-05-04 15:04:01 -0400 |
commit | a13683f292b2ce697f71fa3788a9335ebcb32676 (patch) | |
tree | 09672fe29b03cd8e43e8017089bb89beb6ef45a8 /net/sunrpc | |
parent | 00bc00a9384c306cdd48611a53b955d936349bf6 (diff) |
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 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions