Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19850
b: refs/heads/master
c: 7c6c663
h: refs/heads/master
v: v3
  • Loading branch information
Robin Holt authored and Tony Luck committed Feb 2, 2006
1 parent 7a9eda0 commit c7f701f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 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: 9a52bbed905fa41ca10f4db2e845b588f0fdfbef
refs/heads/master: 7c6c66362941df847957766ad133ff5fde67579c
19 changes: 11 additions & 8 deletions trunk/arch/ia64/sn/kernel/xpc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,18 +575,21 @@ xpc_activate_partition(struct xpc_partition *part)

spin_lock_irqsave(&part->act_lock, irq_flags);

pid = kernel_thread(xpc_activating, (void *) ((u64) partid), 0);

DBUG_ON(part->act_state != XPC_P_INACTIVE);

if (pid > 0) {
part->act_state = XPC_P_ACTIVATION_REQ;
XPC_SET_REASON(part, xpcCloneKThread, __LINE__);
} else {
XPC_SET_REASON(part, xpcCloneKThreadFailed, __LINE__);
}
part->act_state = XPC_P_ACTIVATION_REQ;
XPC_SET_REASON(part, xpcCloneKThread, __LINE__);

spin_unlock_irqrestore(&part->act_lock, irq_flags);

pid = kernel_thread(xpc_activating, (void *) ((u64) partid), 0);

if (unlikely(pid <= 0)) {
spin_lock_irqsave(&part->act_lock, irq_flags);
part->act_state = XPC_P_INACTIVE;
XPC_SET_REASON(part, xpcCloneKThreadFailed, __LINE__);
spin_unlock_irqrestore(&part->act_lock, irq_flags);
}
}


Expand Down

0 comments on commit c7f701f

Please sign in to comment.