• Robert Elliott's avatar
    blk-mq: pass along blk_mq_alloc_tag_set return values · dc501dc0
    Robert Elliott authored
    Two of the blk-mq based drivers do not pass back the return value
    from blk_mq_alloc_tag_set, instead just returning -ENOMEM.
    
    blk_mq_alloc_tag_set returns -EINVAL if the number of queues or
    queue depth is bad.  -ENOMEM implies that retrying after freeing some
    memory might be more successful, but that won't ever change
    in the -EINVAL cases.
    
    Change the null_blk and mtip32xx drivers to pass along
    the return value.
    Signed-off-by: default avatarRobert Elliott <elliott@hp.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    dc501dc0
mtip32xx.c 115 KB