From: Kanchan Joshi <joshi.k@samsung.com>
To: soni.ankit@samsung.com
Cc: kbusch@kernel.org, axboe@fb.com, hch@lst.de, sagi@grimberg.me,
linux-nvme@lists.infradead.org, sathya.m@samsung.com,
d.palani@samsung.com, prakash.bv@samsung.com, anshul@samsung.com
Subject: Re: [PATCH 1/1] nvme: host: changing data type for variable from bool to int.
Date: Wed, 13 Sep 2023 21:00:42 +0530 [thread overview]
Message-ID: <20230913153033.GA27448@green245> (raw)
In-Reply-To: <1694490911-32299-1-git-send-email-soni.ankit@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]
On Tue, Sep 12, 2023 at 09:25:11AM +0530, soni.ankit@samsung.com wrote:
>From: Ankit Soni <soni.ankit@samsung.com>
>
>Changing data type of local variable to make it aligned with
>return type of "nvme_poll_cq" function.
>
>Signed-off-by: Ankit Soni <soni.ankit@samsung.com>
>Signed-off-by: Sathyavathi M <sathya.m@samsung.com>
>---
> 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 2f57da12..b328a65 100644
>--- a/drivers/nvme/host/pci.c
>+++ b/drivers/nvme/host/pci.c
>@@ -1116,7 +1116,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;
Before this change, the function used to return 1 even if more
completions were reaped underneath.
Not a functional issue, as only place actual count mattered was in
io_uring, but it did not rely on this return anyway and used
completion-batching to process multiple completions.
But this was bit confusing, so good to have this cleaned up.
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2023-09-13 15:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230912092353epcas5p130b50fa2030574071c41461447fddd52@epcas5p1.samsung.com>
2023-09-12 3:55 ` [PATCH 1/1] nvme: host: changing data type for variable from bool to int soni.ankit
2023-09-12 13:03 ` Sagi Grimberg
2023-09-13 15:30 ` Kanchan Joshi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230913153033.GA27448@green245 \
--to=joshi.k@samsung.com \
--cc=anshul@samsung.com \
--cc=axboe@fb.com \
--cc=d.palani@samsung.com \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=prakash.bv@samsung.com \
--cc=sagi@grimberg.me \
--cc=sathya.m@samsung.com \
--cc=soni.ankit@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox