• Jeffle Xu's avatar
    nvme-pci: allocate separate interrupt for the reserved non-polled I/O queue · 21cc2f3f
    Jeffle Xu authored
    One queue will be reserved for non-polled IO when nvme.poll_queues is
    greater or equal than the number of IO queues that the nvme controller
    can provide. Currently the reserved queue for non-polled IO will reuse
    the interrupt used by admin queue in this case, e.g, vector 0.
    
    This can work and the performance may not be an issue since the admin
    queue is used unfrequently. However this behaviour may be inconsistent
    with that when nvme.poll_queues is smaller than the number of IO
    queues available.
    
    Thus allocate separate interrupt for this reserved queue, and thus make
    the behaviour consistent.
    Signed-off-by: default avatarJeffle Xu <jefflexu@linux.alibaba.com>
    [hch: minor cleanups, mostly to the pre-existing surrounding code]
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    21cc2f3f
pci.c 83.5 KB