Bug #642: Use fine grain locking in smp mode in net layer38/638/7
commit81f00d788030abd2a5df0e6d95057df41f658ed3
authorBilge Acun <acun2@illinois.edu>
Tue, 17 Mar 2015 20:22:22 +0000 (17 15:22 -0500)
committerPhil Miller <mille121@illinois.edu>
Fri, 3 Apr 2015 18:42:22 +0000 (3 13:42 -0500)
tree475f2ac92c90daf8f525cf9a268361fb756553a3
parentcc3c2c7868699d53f3206691e7cfa3f17af73a88
Bug #642: Use fine grain locking in smp mode in net layer

Changed CmiCommlock to finer grain locks; send_queue_lock,
Cmi_freelist_mutex and Cmi_comm_var_mutex.
send_queue_lock is for each of the outgoing msg queues where worker threads
drops the messages and comm thread consumes.
Cmi_freelist_mutex is for the shared free list where the used datagrams are stored and reused.
Cmi_comm_var_mutex is for protecting other variables that worker and comm
thread share such as writeableDgrams.

Change-Id: I08f8cf71846d91dd48afd28bd0ad83447f5ba0d4
src/arch/netlrts/machine-dgram.c
src/arch/netlrts/machine-eth.c
src/arch/netlrts/machine-tcp.c
src/arch/netlrts/machine.c