]> 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)
commite2c82e005dee927a9a160ae1ae8034f3df8744bf
treefa2e034210aab1996d53f7541c48cca320b9a7d8
parentd3d6cc92543c08d0344f5f95aa5cdaadf7562c9e
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