summaryrefslogtreecommitdiff
path: root/include/linux/list.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2019-11-29 00:11:53 +0300
committerJens Axboe <axboe@kernel.dk>2019-12-19 06:08:50 -0700
commit7d30a621028a22a9e8fbae5c5d8dc455869e4999 (patch)
tree2ed626e9fce51d89849495a2ab5a8b68496fb4ce /include/linux/list.h
parent80a0c2e511a97e11d82e0ec11564e2c3fe624b0d (diff)
blk-mq: optimise rq sort function
Check "!=" in multi-layer comparisons. The same memory usage, fewer instructions, and 2 from 4 jumps are replaced with SETcc. Note, that list_sort() doesn't differ 0 and <0. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/list.h')
0 files changed, 0 insertions, 0 deletions