diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2019-11-29 00:11:53 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-19 06:08:50 -0700 |
commit | 7d30a621028a22a9e8fbae5c5d8dc455869e4999 (patch) | |
tree | 2ed626e9fce51d89849495a2ab5a8b68496fb4ce /include/linux/list.h | |
parent | 80a0c2e511a97e11d82e0ec11564e2c3fe624b0d (diff) | |
download | lwn-7d30a621028a22a9e8fbae5c5d8dc455869e4999.tar.gz lwn-7d30a621028a22a9e8fbae5c5d8dc455869e4999.zip |
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