]> www.infradead.org Git - users/hch/block.git/commit
nvme: move max_integrity_segments handling out of nvme_init_integrity
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 17:54:20 +0000 (12:54 -0500)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Feb 2024 15:01:10 +0000 (07:01 -0800)
commitb3a75124453304b0ef9f4beee859b3458d99898f
tree3ba623dfaf1a8b5aa32338fbf7a3790e0a3c4044
parent4e69ae2941c819f09e0b259df4625eab6e4a88e6
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>
drivers/nvme/host/core.c