|
@@ -1793,6 +1793,9 @@ restart:
|
|
|
goto restart;
|
|
|
}
|
|
|
}
|
|
|
+ pool->next_index = 0;
|
|
|
+ pool->left = FC_XID_UNKNOWN;
|
|
|
+ pool->right = FC_XID_UNKNOWN;
|
|
|
spin_unlock_bh(&pool->lock);
|
|
|
}
|
|
|
|
|
@@ -2281,6 +2284,7 @@ struct fc_exch_mgr *fc_exch_mgr_alloc(struct fc_lport *lport,
|
|
|
goto free_mempool;
|
|
|
for_each_possible_cpu(cpu) {
|
|
|
pool = per_cpu_ptr(mp->pool, cpu);
|
|
|
+ pool->next_index = 0;
|
|
|
pool->left = FC_XID_UNKNOWN;
|
|
|
pool->right = FC_XID_UNKNOWN;
|
|
|
spin_lock_init(&pool->lock);
|