[process] Make it safe to call process_add() multiple times

This commit is contained in:
Michael Brown
2009-08-10 01:09:41 +01:00
parent 46073f1239
commit 04878ef745
5 changed files with 14 additions and 3 deletions

View File

@@ -802,6 +802,7 @@ static void ib_step ( struct process *process __unused ) {
/** Infiniband event queue process */
struct process ib_process __permanent_process = {
.list = LIST_HEAD_INIT ( ib_process.list ),
.step = ib_step,
};

View File

@@ -625,5 +625,6 @@ static void net_step ( struct process *process __unused ) {
/** Networking stack process */
struct process net_process __permanent_process = {
.list = LIST_HEAD_INIT ( net_process.list ),
.step = net_step,
};

View File

@@ -187,5 +187,6 @@ static void retry_step ( struct process *process __unused ) {
/** Retry timer process */
struct process retry_process __permanent_process = {
.list = LIST_HEAD_INIT ( retry_process.list ),
.step = retry_step,
};