]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvme: module parameter to disable pi with offsets
authorKeith Busch <kbusch@kernel.org>
Wed, 23 Oct 2024 15:40:26 +0000 (08:40 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 30 Oct 2024 14:19:18 +0000 (07:19 -0700)
commit42ab37eaad17aee458489c553a367621ee04e0bc
tree66fd1c88d1562b8855ab1c3a3c5b49309ab34973
parentf54f0d0e2b1f74de85ff02013fa4886e4154aca5
nvme: module parameter to disable pi with offsets

A recent commit enables integrity checks for formats the previous kernel
versions registered with the "nop" integrity profile. This means
namespaces using that format become unreadable when upgrading the kernel
past that commit.

Introduce a module parameter to restore the "nop" integrity profile so
that storage can be readable once again. This could be a boot device, so
the setting needs to happen at module load time.

Fixes: 921e81db524d17 ("nvme: allow integrity when PI is not in first bytes")
Reported-by: David Wei <dw@davidwei.uk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c