commit | 4f266f2be822eacd70aca2a7a53c4a111be79acb | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Mon Oct 18 21:37:27 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 18 14:38:42 2021 -0600 |
tree | 9b5397b69c543d687cd5ec08848e2b5640fae8c6 | |
parent | 2ff0682da6e09c1e0db63a2d2abcd4efb531c8db [diff] |
block: skip elevator fields init for non-elv queue Don't init rq->hash and rq->rb_node in blk_mq_rq_ctx_init() if there is no elevator. Also, move some other initialisers that imply barriers to the end, so the compiler is free to rearrange and optimise other the rest of them. note: fold in a change from Jens leaving queue_list unconditional, as it might lead to problems otherwise. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>