Pavel Begunkov 4f266f2be8 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>
2021-10-18 14:38:42 -06:00
..
2021-10-18 06:17:36 -06:00
2021-10-18 06:17:01 -06:00
2021-08-18 07:21:12 -06:00
2021-08-17 20:17:34 -06:00
2021-06-17 15:51:20 +02:00
2020-03-17 20:55:21 +01:00
2021-10-18 06:17:36 -06:00
2021-09-14 00:22:15 -04:00
2021-10-18 06:17:01 -06:00
2021-10-18 06:17:35 -06:00