• Jens Axboe's avatar
    block: move queue enter logic into blk_mq_submit_bio() · 900e0807
    Jens Axboe authored
    Retain the old logic for the fops based submit, but for our internal
    blk_mq_submit_bio(), move the queue entering logic into the core
    function itself.
    
    We need to be a bit careful if going into the scheduler, as a scheduler
    or queue mappings can arbitrarily change before we have entered the queue.
    Have the bio scheduler mapping do that separately, it's a very cheap
    operation compared to actually doing merging locking and lookups.
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    [axboe: update to check merge post submit_bio_checks() doing remap...]
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    900e0807
blk-mq-sched.c 17.7 KB