block: move RQF_ELV setting into allocators
authorJens Axboe <axboe@kernel.dk>
Tue, 2 Nov 2021 14:34:09 +0000 (08:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Nov 2021 15:26:26 +0000 (09:26 -0600)
commit781dd830ec4f4d56b99d5d0c64bacda4c3ee3cfd
treee2afd88deddea0e679b59d424c730dd63e16296d
parenta1c2f7e7f25c9d35d3bf046f99682c5373b20fa2
block: move RQF_ELV setting into allocators

It's not safe to do this before blk_queue_enter(), as the scheduler state
could have changed in between. Hence move the RQF_ELV setting into the
allocators, where we know the queue is already entered.

Suggested-by: Ming Lei <ming.lei@redhat.com>
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Reported-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c