commit | cdbff98223330cdb6c57ead1533ce066dddd61b7 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Fri Feb 12 18:41:16 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Feb 12 11:49:49 2021 -0700 |
tree | 4b5a1e81d4c10cb139c9c452dc802b0086907997 | |
parent | dc0eced5d92052a84d58df03a3bc6382f64fecfa [diff] |
io_uring: clean io_req_find_next() fast check Indirectly io_req_find_next() is called for every request, optimise the check by testing flags as it was long before -- __io_req_find_next() tolerates false-positives well (i.e. link==NULL), and those should be really rare. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>