diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-10-18 21:37:27 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-18 14:38:42 -0600 |
commit | 4f266f2be822eacd70aca2a7a53c4a111be79acb (patch) | |
tree | 9b5397b69c543d687cd5ec08848e2b5640fae8c6 /block/blk-mq-debugfs.c | |
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>
Diffstat (limited to 'block/blk-mq-debugfs.c')
0 files changed, 0 insertions, 0 deletions