Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme: export nvme_configure_[sq|cq] to public
These two functions configure libvfn queue instance attribute members along with doorbell. They have been inside of nvme_configure_adminq() and nvme_create_io[sq|cq]() APIs where NVMe admin command is actually issued to the admin submission queue and CQE of the command is reaped in the same context by polling in __admin(). However, in case application enabled interrupt for the admin completion queue with vector == 0 and application handles the interrupt in the user-space, CQ entry should not be directly reaped by libvfn, instead application should awake and reap the cq entry once the interrupt comes. To let application handles cq entries for the admin completion queue by themselves, this patch exported them to public APIs so that application can configure the sq/cq instances in libvfn and issue the admin command and handles the completion properly. Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
- Loading branch information