• Jens Axboe's avatar
    blk-mq: allow blk_mq_init_commands() to return failure · 95363efd
    Jens Axboe authored
    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: default avatarJens Axboe <axboe@fb.com>
    95363efd
blk-mq.h 5.25 KB