• Matias Bjørling's avatar
    null_blk: support submit_queues on use_per_node_hctx · fc1bc354
    Matias Bjørling authored
    In the case of both the submit_queues param and use_per_node_hctx param
    are used. We limit the number af submit_queues to the number of online
    nodes.
    
    If the submit_queues is a multiple of nr_online_nodes, its trivial. Simply map
    them to the nodes. For example: 8 submit queues are mapped as node0[0,1],
    node1[2,3], ...
    If uneven, we are left with an uneven number of submit_queues that must be
    mapped. These are mapped toward the first node and onward. E.g. 5
    submit queues mapped onto 4 nodes are mapped as node0[0,1], node1[2], ...
    Signed-off-by: default avatarMatias Bjorling <m@bjorling.me>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    fc1bc354
null_blk.c 14.3 KB