]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitb42b6f4485e3f0970e11f73df6202eeaf9f53a3e
treefa2e034210aab1996d53f7541c48cca320b9a7d8
parent3e3876d322aef82416ecc496a4d4a587e0fdf7a3
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