From: Jens Axboe <axboe@kernel.dk>
To: Kanchan Joshi <joshi.k@samsung.com>, Keith Busch <kbusch@meta.com>
Cc: linux-nvme@lists.infradead.org, hch@lst.de, sagi@grimberg.me,
Keith Busch <kbusch@kernel.org>, Daniel Wagner <dwagner@suse.de>,
Alan Adamson <alan.adamson@oracle.com>
Subject: Re: [PATCH] nvme: quiet user passthrough command errors
Date: Thu, 27 Oct 2022 07:17:48 -0600 [thread overview]
Message-ID: <f49bd086-fe3a-670c-13ce-80f06a855166@kernel.dk> (raw)
In-Reply-To: <20221027054136.GA5939@test-zns>
On 10/26/22 11:41 PM, Kanchan Joshi wrote:
> On Wed, Oct 26, 2022 at 10:07:15AM -0700, Keith Busch wrote:
>> From: Keith Busch <kbusch@kernel.org>
>>
>> The driver is spamming the kernel logs for entirely harmless errors from
>> user space submitting unsupported commmands. Just silence the errors.
>> The application has direct access to command status, so there's no need
>> to log these.
>>
>> Cc: Daniel Wagner <dwagner@suse.de>
>> Cc: Alan Adamson <alan.adamson@oracle.com>
>> Signed-off-by: Keith Busch <kbusch@kernel.org>
>> ---
>> drivers/nvme/host/core.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
>> index 686c55cb5d1a..da874172a31d 100644
>> --- a/drivers/nvme/host/core.c
>> +++ b/drivers/nvme/host/core.c
>> @@ -1156,6 +1156,7 @@ int nvme_execute_passthru_rq(struct request *rq, u32 *effects)
>> struct nvme_ns *ns = rq->q->queuedata;
>>
>> *effects = nvme_passthru_start(ctrl, ns, cmd->common.opcode);
>> + rq->rq_flags |= RQF_QUIET;
>> return nvme_execute_rq(rq, false);
>> }
>
> Can we do this for uring-passthrough path too? Like below patch -
>
> diff --git a/drivers/nvme/host/ioctl.c b/drivers/nvme/host/ioctl.c
> index 81f5550b670d..a91cefc38506 100644
> --- a/drivers/nvme/host/ioctl.c
> +++ b/drivers/nvme/host/ioctl.c
> @@ -556,6 +556,7 @@ static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
> } else {
> req->end_io = nvme_uring_cmd_end_io;
> }
> + req->rq_flags |= RQF_QUIET;
> blk_execute_rq_nowait(req, false);
> return -EIOCBQUEUED;
> }
>
> Looks good otherwise.
> Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Agree, we should do it for this path too.
--
Jens Axboe
next prev parent reply other threads:[~2022-10-27 13:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20221026171201epcas5p1f6333717c7f12b5a8fe362cf09c5447d@epcas5p1.samsung.com>
2022-10-26 17:07 ` [PATCH] nvme: quiet user passthrough command errors Keith Busch
2022-10-26 18:04 ` Chaitanya Kulkarni
2022-10-26 18:08 ` Alan Adamson
2022-10-26 18:19 ` Keith Busch
2022-10-26 21:27 ` Alan Adamson
2022-10-27 5:41 ` Kanchan Joshi
2022-10-27 13:17 ` Jens Axboe [this message]
2022-10-27 15:00 ` Keith Busch
2022-10-27 16:40 ` Chaitanya Kulkarni
2022-10-27 13:14 ` Pankaj Raghav
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=f49bd086-fe3a-670c-13ce-80f06a855166@kernel.dk \
--to=axboe@kernel.dk \
--cc=alan.adamson@oracle.com \
--cc=dwagner@suse.de \
--cc=hch@lst.de \
--cc=joshi.k@samsung.com \
--cc=kbusch@kernel.org \
--cc=kbusch@meta.com \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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