aboutsummaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorMitko Haralanov <[email protected]>2016-05-12 10:23:09 -0700
committerDoug Ledford <[email protected]>2016-05-13 19:39:16 -0400
commit67caea1fec85266590dddfa431e1cb000bc942f4 (patch)
tree99a3447c05519f37fdf9e6208bbeffe15f49046f /scripts/objdiff
parentb96b040445f5d84fb8aa2ff986be71f5069c976e (diff)
IB/hfi1: Improve performance of interval RB trees
The interval RB tree management functions use handlers to store user-specific callback for the various tree operations. These handlers are put on a doubly-linked list. When a RB tree function is called, the list is searched for the handler of the particular tree. The list which holds the handlers is modified very rarely - when a handler is created and when a handler is removed. On the other hand, it is searched very often. This a perfect usage scenario for RCU. The result is a much lower overhead of traversing the list as most of the time no locking will be required. Reviewed-by: Dean Luick <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Mitko Haralanov <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions