]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: don't print verbose errors for internal passthrough requests
authorChaitanya Kulkarni <kch@nvidia.com>
Mon, 11 Apr 2022 03:12:49 +0000 (20:12 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:56:14 +0000 (06:56 +0200)
commitdcc411176f58e7bfb3463932ec25789e427edb7a
treefa2e034210aab1996d53f7541c48cca320b9a7d8
parent5911c92a8881e2e755fe657bb200a6bfa4f00b69
nvme: don't print verbose errors for internal passthrough requests

Use the RQF_QUIET flag to skip the newly added verbose error reporting,
and set the flag in __nvme_submit_sync_cmd, which is used for most
internal passthrough requests where we do expect errors (e.g. due to
probing for optional functionality).  This is similar to what the SCSI
verbose error logging does.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Alan Adamson <alan.adamson@oracle.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Alan Adamson <alan.adamson@oracle.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c