diff options
| author | Jason Gunthorpe <[email protected]> | 2020-05-06 10:46:55 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-05-12 21:32:53 -0300 |
| commit | e83f195aa45c1ffd73b3a950a887e41c260cf194 (patch) | |
| tree | 8ec6e568b0b83678803f0be44bb069b519519a82 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 42113eed8f10533ba419df535b6c0ff9141a948c (diff) | |
RDMA/cm: Pull duplicated code into cm_queue_work_unlock()
While unlocking a spinlock held by the caller is a disturbing pattern,
this extensively duplicated code is even worse. Pull all the duplicates
into a function and explain the purpose of the algorithm.
The on creation side call in cm_req_handler() which is different has been
micro-optimized on the basis that the work_count == -1 during creation,
remove that and just use the normal function.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions