Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: handle pi_tuple_size in queue_limits_stack_integrity

queue_limits_stack_integrity needs to handle the new pi_tuple_size field,
otherwise stacking PI-capable devices will always fail.

Fixes: 76e45252a4ce ("block: introduce pi_tuple_size field in blk_integrity")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20250818045456.1482889-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
61ca3b89 0227af35

+3
+3
block/blk-settings.c
··· 972 972 goto incompatible; 973 973 if (ti->csum_type != bi->csum_type) 974 974 goto incompatible; 975 + if (ti->pi_tuple_size != bi->pi_tuple_size) 976 + goto incompatible; 975 977 if ((ti->flags & BLK_INTEGRITY_REF_TAG) != 976 978 (bi->flags & BLK_INTEGRITY_REF_TAG)) 977 979 goto incompatible; ··· 982 980 ti->flags |= (bi->flags & BLK_INTEGRITY_DEVICE_CAPABLE) | 983 981 (bi->flags & BLK_INTEGRITY_REF_TAG); 984 982 ti->csum_type = bi->csum_type; 983 + ti->pi_tuple_size = bi->pi_tuple_size; 985 984 ti->metadata_size = bi->metadata_size; 986 985 ti->pi_offset = bi->pi_offset; 987 986 ti->interval_exp = bi->interval_exp;