Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78711
b: refs/heads/master
c: 4cec72c
h: refs/heads/master
i:
  78709: 1731d5f
  78707: 397e48a
  78703: 03a6e3a
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Jan 28, 2008
1 parent c637bfc commit 40e5762
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdcb006fbe7a74b5f7827f5c5c27e11399a2fab7
refs/heads/master: 4cec72c890d3a465eed08c24a4a2bfe25650318f
20 changes: 10 additions & 10 deletions trunk/net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ int tipc_portunreliable(u32 ref, unsigned int *isunreliable)
if (!p_ptr)
return -EINVAL;
*isunreliable = port_unreliable(p_ptr);
spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
return TIPC_OK;
}

Expand Down Expand Up @@ -369,7 +369,7 @@ int tipc_portunreturnable(u32 ref, unsigned int *isunrejectable)
if (!p_ptr)
return -EINVAL;
*isunrejectable = port_unreturnable(p_ptr);
spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
return TIPC_OK;
}

Expand Down Expand Up @@ -843,7 +843,7 @@ static void port_dispatcher_sigh(void *dummy)
u32 peer_port = port_peerport(p_ptr);
u32 peer_node = port_peernode(p_ptr);

spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
if (unlikely(!connected)) {
if (unlikely(published))
goto reject;
Expand All @@ -867,7 +867,7 @@ static void port_dispatcher_sigh(void *dummy)
case TIPC_DIRECT_MSG:{
tipc_msg_event cb = up_ptr->msg_cb;

spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
if (unlikely(connected))
goto reject;
if (unlikely(!cb))
Expand All @@ -882,7 +882,7 @@ static void port_dispatcher_sigh(void *dummy)
case TIPC_NAMED_MSG:{
tipc_named_msg_event cb = up_ptr->named_msg_cb;

spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
if (unlikely(connected))
goto reject;
if (unlikely(!cb))
Expand Down Expand Up @@ -913,7 +913,7 @@ static void port_dispatcher_sigh(void *dummy)
u32 peer_port = port_peerport(p_ptr);
u32 peer_node = port_peernode(p_ptr);

spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
if (!connected || !cb)
break;
if (msg_origport(msg) != peer_port)
Expand All @@ -929,7 +929,7 @@ static void port_dispatcher_sigh(void *dummy)
case TIPC_DIRECT_MSG:{
tipc_msg_err_event cb = up_ptr->err_cb;

spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
if (connected || !cb)
break;
skb_pull(buf, msg_hdr_sz(msg));
Expand All @@ -942,7 +942,7 @@ static void port_dispatcher_sigh(void *dummy)
tipc_named_msg_err_event cb =
up_ptr->named_err_cb;

spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
if (connected || !cb)
break;
dseq.type = msg_nametype(msg);
Expand Down Expand Up @@ -1107,7 +1107,7 @@ int tipc_portimportance(u32 ref, unsigned int *importance)
if (!p_ptr)
return -EINVAL;
*importance = (unsigned int)msg_importance(&p_ptr->publ.phdr);
spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
return TIPC_OK;
}

Expand All @@ -1122,7 +1122,7 @@ int tipc_set_portimportance(u32 ref, unsigned int imp)
if (!p_ptr)
return -EINVAL;
msg_set_importance(&p_ptr->publ.phdr, (u32)imp);
spin_unlock_bh(p_ptr->publ.lock);
tipc_port_unlock(p_ptr);
return TIPC_OK;
}

Expand Down

0 comments on commit 40e5762

Please sign in to comment.