public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] nvme: fix return type of nvme_poll()
@ 2024-12-07  4:55 Yongsoo Joo
  2024-12-08  3:13 ` Keith Busch
  0 siblings, 1 reply; 5+ messages in thread
From: Yongsoo Joo @ 2024-12-07  4:55 UTC (permalink / raw)
  To: kbusch, axboe, hch, sagi; +Cc: linux-nvme, Yongsoo Joo

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@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


-- 



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-09 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-07  4:55 [PATCH] nvme: fix return type of nvme_poll() Yongsoo Joo
2024-12-08  3:13 ` Keith Busch
2024-12-08  6:24   ` Yongsoo Joo
2024-12-09  7:58     ` Christoph Hellwig
2024-12-09 13:28       ` Yongsoo Joo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox