]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: introduce BIP_CHECK_GUARD/REFTAG/APPTAG bip_flags
authorAnuj Gupta <anuj20.g@samsung.com>
Thu, 28 Nov 2024 11:22:37 +0000 (16:52 +0530)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Dec 2024 15:17:16 +0000 (08:17 -0700)
commit2c0487d8b1f1351d48a13b77b254a2bb6de49eb3
tree499523958e8f5cd5e8803f89314be14f6012918a
parent59a7d12a7fb5ab24efa893e6980a00ffc090c777
block: introduce BIP_CHECK_GUARD/REFTAG/APPTAG bip_flags

This patch introduces BIP_CHECK_GUARD/REFTAG/APPTAG bip_flags which
indicate how the hardware should check the integrity payload.
BIP_CHECK_GUARD/REFTAG are conversion of existing semantics, while
BIP_CHECK_APPTAG is a new flag. The driver can now just rely on block
layer flags, and doesn't need to know the integrity source. Submitter
of PI decides which tags to check. This would also give us a unified
interface for user and kernel generated integrity.

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20241128112240.8867-8-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c
drivers/nvme/host/core.c
include/linux/bio-integrity.h