NVMe: Return correct value from interrupt handler
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 24 Jun 2013 15:47:34 +0000 (11:47 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 24 Jun 2013 15:54:20 +0000 (11:54 -0400)
commite9539f47525ecee05c9f22c3565885f3e9492c52
tree5de495060ebbad25fc7de7180cb381a3c7e85f98
parent6198221fa0df0298513b35796f63f242ea97134e
NVMe: Return correct value from interrupt handler

The interrupt handler currently reports whether it found any new
completion queue entries.  If the completion queue is primarily being
processed by a method other than the interrupt handler, it may return
IRQ_NONE so often that Linux thinks that the interrupt is being falsely
triggered.

To solve this problem, report whether any completion queue entries have
been seen since the last interrupt was received for this queue.

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