block: add support to pass user meta buffer
authorKanchan Joshi <joshi.k@samsung.com>
Thu, 28 Nov 2024 11:22:40 +0000 (16:52 +0530)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Dec 2024 13:58:15 +0000 (06:58 -0700)
commit42a36fa93430e723db8c7ad28b15390e9f39957c
tree96608e1f31c69ebdf4af7d03c8cb277bbcd9cd6b
parentb49cd5c88db4e6bf3ae783d8b5d1074ee7a586bb
block: add support to pass user meta buffer

If an iocb contains metadata, extract that and prepare the bip.
Based on flags specified by the user, set corresponding guard/app/ref
tags to be checked in bip.

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