nvme: quiet user passthrough command errors
authorKeith Busch <kbusch@kernel.org>
Fri, 28 Oct 2022 20:14:15 +0000 (13:14 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Nov 2022 13:28:27 +0000 (14:28 +0100)
commitd7ac8dca938cd60cf7bd9a89a229a173c6bcba87
treee50cf2115f12400c12c73e2b664935878e5a1ad7
parentf829230dd51974c1f4478900ed30bb77ba530b40
nvme: quiet user passthrough command errors

The driver is spamming the kernel logs for entirely harmless errors from
user space submitting unsupported commands. Just silence the errors.
The application has direct access to command status, so there's no need
to log these.

And since every passthrough command now uses the quiet flag, move the
setting to the common initializer.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Alan Adamson <alan.adamson@oracle.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Tested-by: Alan Adamson <alan.adamson@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/pci.c