aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2020-06-29 13:12:59 +0300
committerJens Axboe <[email protected]>2020-06-30 08:38:58 -0600
commit7c86ffeeed303187f266ed17bd87a9b375955709 (patch)
treed589944e8631359a8a3199073121c60ace69199f /tools/perf/scripts/python
parentfb49278624f75e15d36c3c43d322ca8961fb40e9 (diff)
io_uring: deduplicate freeing linked timeouts
Linked timeout cancellation code is repeated in in io_req_link_next() and io_fail_links(), and they differ in details even though shouldn't. Basing on the fact that there is maximum one armed linked timeout in a link, and it immediately follows the head, extract a function that will check for it and defuse. Justification: - DRY and cleaner - better inlining for io_req_link_next() (just 1 call site now) - isolates linked_timeouts from common path - reduces time under spinlock for failed links - actually less code Signed-off-by: Pavel Begunkov <[email protected]> [axboe: fold in locking fix for io_fail_links()] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions