mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
tipc: Don't record failed publication attempt as a success
No longer increments counter of number of publications by a node if an attempt to add a new publication fails. This prevents TIPC from incorrectly blocking future publications because the configured maximum number of publications has been reached. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
1110b8d33a
commit
fd6eced8a4
1 changed files with 3 additions and 2 deletions
|
@ -695,11 +695,12 @@ struct publication *tipc_nametbl_publish(u32 type, u32 lower, u32 upper,
|
||||||
}
|
}
|
||||||
|
|
||||||
write_lock_bh(&tipc_nametbl_lock);
|
write_lock_bh(&tipc_nametbl_lock);
|
||||||
table.local_publ_count++;
|
|
||||||
publ = tipc_nametbl_insert_publ(type, lower, upper, scope,
|
publ = tipc_nametbl_insert_publ(type, lower, upper, scope,
|
||||||
tipc_own_addr, port_ref, key);
|
tipc_own_addr, port_ref, key);
|
||||||
if (likely(publ))
|
if (likely(publ)) {
|
||||||
|
table.local_publ_count++;
|
||||||
tipc_named_publish(publ);
|
tipc_named_publish(publ);
|
||||||
|
}
|
||||||
write_unlock_bh(&tipc_nametbl_lock);
|
write_unlock_bh(&tipc_nametbl_lock);
|
||||||
return publ;
|
return publ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue