diff options
Diffstat (limited to 'net/tipc/name_table.c')
| -rw-r--r-- | net/tipc/name_table.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c index 9d7d37d95187..3a6a0a7c0759 100644 --- a/net/tipc/name_table.c +++ b/net/tipc/name_table.c | |||
| @@ -39,7 +39,6 @@ | |||
| 39 | #include "name_table.h" | 39 | #include "name_table.h" |
| 40 | #include "name_distr.h" | 40 | #include "name_distr.h" |
| 41 | #include "subscr.h" | 41 | #include "subscr.h" |
| 42 | #include "port.h" | ||
| 43 | 42 | ||
| 44 | #define TIPC_NAMETBL_SIZE 1024 /* must be a power of 2 */ | 43 | #define TIPC_NAMETBL_SIZE 1024 /* must be a power of 2 */ |
| 45 | 44 | ||
| @@ -262,8 +261,6 @@ static struct publication *tipc_nameseq_insert_publ(struct name_seq *nseq, | |||
| 262 | 261 | ||
| 263 | /* Lower end overlaps existing entry => need an exact match */ | 262 | /* Lower end overlaps existing entry => need an exact match */ |
| 264 | if ((sseq->lower != lower) || (sseq->upper != upper)) { | 263 | if ((sseq->lower != lower) || (sseq->upper != upper)) { |
| 265 | pr_warn("Cannot publish {%u,%u,%u}, overlap error\n", | ||
| 266 | type, lower, upper); | ||
| 267 | return NULL; | 264 | return NULL; |
| 268 | } | 265 | } |
| 269 | 266 | ||
| @@ -285,8 +282,6 @@ static struct publication *tipc_nameseq_insert_publ(struct name_seq *nseq, | |||
| 285 | /* Fail if upper end overlaps into an existing entry */ | 282 | /* Fail if upper end overlaps into an existing entry */ |
| 286 | if ((inspos < nseq->first_free) && | 283 | if ((inspos < nseq->first_free) && |
| 287 | (upper >= nseq->sseqs[inspos].lower)) { | 284 | (upper >= nseq->sseqs[inspos].lower)) { |
| 288 | pr_warn("Cannot publish {%u,%u,%u}, overlap error\n", | ||
| 289 | type, lower, upper); | ||
| 290 | return NULL; | 285 | return NULL; |
| 291 | } | 286 | } |
| 292 | 287 | ||
| @@ -678,6 +673,8 @@ struct publication *tipc_nametbl_publish(u32 type, u32 lower, u32 upper, | |||
| 678 | if (likely(publ)) { | 673 | if (likely(publ)) { |
| 679 | table.local_publ_count++; | 674 | table.local_publ_count++; |
| 680 | buf = tipc_named_publish(publ); | 675 | buf = tipc_named_publish(publ); |
| 676 | /* Any pending external events? */ | ||
| 677 | tipc_named_process_backlog(); | ||
| 681 | } | 678 | } |
| 682 | write_unlock_bh(&tipc_nametbl_lock); | 679 | write_unlock_bh(&tipc_nametbl_lock); |
| 683 | 680 | ||
| @@ -699,6 +696,8 @@ int tipc_nametbl_withdraw(u32 type, u32 lower, u32 ref, u32 key) | |||
| 699 | if (likely(publ)) { | 696 | if (likely(publ)) { |
| 700 | table.local_publ_count--; | 697 | table.local_publ_count--; |
| 701 | buf = tipc_named_withdraw(publ); | 698 | buf = tipc_named_withdraw(publ); |
| 699 | /* Any pending external events? */ | ||
| 700 | tipc_named_process_backlog(); | ||
| 702 | write_unlock_bh(&tipc_nametbl_lock); | 701 | write_unlock_bh(&tipc_nametbl_lock); |
| 703 | list_del_init(&publ->pport_list); | 702 | list_del_init(&publ->pport_list); |
| 704 | kfree(publ); | 703 | kfree(publ); |
