]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: move max_integrity_segments handling out of nvme_init_integrity
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:48 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:55 +0000 (08:24 -0800)
commitf404dd928b6667b383e684f2bd8cce507e031481
tree29f84ec97c89ad34476296dc70392d0563e2175b
parent1b2f5d5d288080ea10b4e2ed595c0dfb11557c17
nvme: move max_integrity_segments handling out of nvme_init_integrity

max_integrity_segments is just a hardware limit and doesn't need to be
in nvme_init_integrity with the PI setup.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c