From 647605d8db385e3f0aa6332016aefe637c94aea2 Mon Sep 17 00:00:00 2001 From: Allan Stephens Date: Wed, 4 Jun 2008 17:38:22 -0700 Subject: [PATCH] --- yaml --- r: 102688 b: refs/heads/master c: 307fdf5e7defcacf84db21cda18770b2bf5f5196 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/tipc/name_table.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 62249b9b250f..2c859c0af27f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0f15d36453bbd02d404445dace49f4ae072f44e5 +refs/heads/master: 307fdf5e7defcacf84db21cda18770b2bf5f5196 diff --git a/trunk/net/tipc/name_table.c b/trunk/net/tipc/name_table.c index 4455f13cfaf6..096f7bd240a0 100644 --- a/trunk/net/tipc/name_table.c +++ b/trunk/net/tipc/name_table.c @@ -74,7 +74,7 @@ struct sub_seq { * @first_free: array index of first unused sub-sequence entry * @ns_list: links to adjacent name sequences in hash chain * @subscriptions: list of subscriptions for this 'type' - * @lock: spinlock controlling access to name sequence structure + * @lock: spinlock controlling access to publication lists of all sub-sequences */ struct name_seq { @@ -918,7 +918,9 @@ static void nameseq_list(struct name_seq *seq, struct print_buf *buf, u32 depth, for (sseq = seq->sseqs; sseq != &seq->sseqs[seq->first_free]; sseq++) { if ((lowbound <= sseq->upper) && (upbound >= sseq->lower)) { tipc_printf(buf, "%s ", typearea); + spin_lock_bh(&seq->lock); subseq_list(sseq, buf, depth, index); + spin_unlock_bh(&seq->lock); sprintf(typearea, "%10s", " "); } }