diff options
author | Bart Van Assche <[email protected]> | 2016-02-11 11:08:34 -0800 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2016-02-29 17:12:36 -0500 |
commit | 8628991fbe6a9086189f55f0b33dee7f25108ecc (patch) | |
tree | 4cfe8e1c7373c8a93c1d68de0a3b815d98c86240 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c13c90ea6762d834a07c0aa18134d98794f6fc3d (diff) |
IB/srpt: Use a mutex to protect the channel list
In a later patch a function that can block will be called while
iterating over the rch_list. Hence protect that list with a
mutex instead of a spinlock. And since it is not allowed to sleep
while the task state != TASK_RUNNING, convert the list test in
srpt_ch_list_empty() into a lockless test.
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: Alex Estrin <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions