NVMe: Call nvme_process_cq from submission path
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 24 Jun 2013 16:03:57 +0000 (12:03 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 24 Jun 2013 17:57:27 +0000 (13:57 -0400)
commit7d8224574cbd2326a6be00f319f5f7597abec3f6
treefcba1402f98bffa6a38f2a00d104e43e865804c8
parentbc57a0f7a44cfcf3e9873f6c6b8dcecdca486b1f
NVMe: Call nvme_process_cq from submission path

Since we have the queue locked, it makes sense to check if there are
any completion queue entries on the queue before we release the lock.
If there are, it may save an interrupt and reduce latency for the I/Os
that happened to complete.  This happens fairly often for some workloads.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c