[PATCH] nvme: fix return type of nvme_poll()
Yongsoo Joo
ysjoo at kookmin.ac.kr
Fri Dec 6 20:55:46 PST 2024
Change the type of the return variable 'found' from bool to int so
that any interested caller can see not only whether at least one
CQE was processed, but also the total number of CQEs processed.
Signed-off-by: Yongsoo Joo <ysjoo at kookmin.ac.kr>
---
drivers/nvme/host/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 1a5ba80f1811..a51869899385 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1209,7 +1209,7 @@ static void nvme_poll_irqdisable(struct nvme_queue *nvmeq)
static int nvme_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob)
{
struct nvme_queue *nvmeq = hctx->driver_data;
- bool found;
+ int found;
if (!nvme_cqe_pending(nvmeq))
return 0;
--
2.34.1
--
More information about the Linux-nvme
mailing list