]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: support UBLK_F_INTEGRITY
authorStanley Zhang <stazhang@purestorage.com>
Thu, 8 Jan 2026 09:19:38 +0000 (02:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 16:16:38 +0000 (09:16 -0700)
commitb2503e936b598b993cb09005194dc77d2fa3f082
tree89bb70a9daf45720ac0d28d3978ae56721936f70
parentbe82a89066d595da334f6e153ababcedc3f92ad6
ublk: support UBLK_F_INTEGRITY

Now that all the components of the ublk integrity feature have been
implemented, add UBLK_F_INTEGRITY to UBLK_F_ALL, conditional on block
layer integrity support (CONFIG_BLK_DEV_INTEGRITY). This allows ublk
servers to create ublk devices with UBLK_F_INTEGRITY set and
UBLK_U_CMD_GET_FEATURES to report the feature as supported.

Signed-off-by: Stanley Zhang <stazhang@purestorage.com>
[csander: make feature conditional on CONFIG_BLK_DEV_INTEGRITY]
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c