• J
    block: store elevator state in request · 2ff0682d
    Jens Axboe 提交于
    Add an rq private RQF_ELV flag, which tells the block layer that this
    request was initialized on a queue that has an IO scheduler attached.
    This allows for faster checking in the fast path, rather than having to
    deference rq->q later on.
    
    Elevator switching does full quiesce of the queue before detaching an
    IO scheduler, so it's safe to cache this in the request itself.
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    2ff0682d
blk-mq.h 32.1 KB