Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143949
b: refs/heads/master
c: 3fa6b5a
h: refs/heads/master
i:
  143947: ef3ec04
v: v3
  • Loading branch information
Hendrik Brueckner authored and David S. Miller committed Apr 22, 2009
1 parent bc578d4 commit 9da98c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: e14ad5fa8705fb354e72312479abbe420ebc3f8e
refs/heads/master: 3fa6b5adbe46b3d665267dee0f879858ab464f44
8 changes: 5 additions & 3 deletions trunk/net/iucv/af_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
return;
}

spin_lock(&iucv->message_q.lock);

if (!list_empty(&iucv->message_q.list) ||
!skb_queue_empty(&iucv->backlog_skb_q))
goto save_message;
Expand All @@ -1137,9 +1139,8 @@ static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
if (!skb)
goto save_message;

spin_lock(&iucv->message_q.lock);
iucv_process_message(sk, skb, path, msg);
spin_unlock(&iucv->message_q.lock);
goto out_unlock;

return;

Expand All @@ -1150,8 +1151,9 @@ static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
save_msg->path = path;
save_msg->msg = *msg;

spin_lock(&iucv->message_q.lock);
list_add_tail(&save_msg->list, &iucv->message_q.list);

out_unlock:
spin_unlock(&iucv->message_q.lock);
}

Expand Down

0 comments on commit 9da98c4

Please sign in to comment.