• J
    blk-mq: allow blk_mq_init_commands() to return failure · 95363efd
    Jens Axboe 提交于
    If drivers do dynamic allocation in the hardware command init
    path, then we need to be able to handle and return failures.
    
    And if they do allocations or mappings in the init command path,
    then we need a cleanup function to free up that space at exit
    time. So add blk_mq_free_commands() as the cleanup function.
    
    This is required for the mtip32xx driver conversion to blk-mq.
    Signed-off-by: NJens Axboe <axboe@fb.com>
    95363efd
virtio_blk.c 20.1 KB