nvme: always initialize known command effects
authorKeith Busch <kbusch@kernel.org>
Fri, 27 Jan 2023 16:56:19 +0000 (08:56 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Feb 2023 15:10:09 +0000 (16:10 +0100)
commitcc115cbe12d932b2f081038bf32c815add2b20d7
tree0f3d833c4e3c24599242da8ea6ccc2db12cef0b4
parentddf91717693f1ac524329a88f86ab09e66b18cbe
nvme: always initialize known command effects

Instead of appending command effects flags per IO, set the known effects
flags the driver needs to react to just once during initial setup.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c