]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: implement integrity user copy in kublk
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 8 Jan 2026 09:19:43 +0000 (02:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 16:16:38 +0000 (09:16 -0700)
commit24f8a44b797f03dfadb455138930523599d3c22a
tree66949e45cbf525199694c0328357ecd6e6f76c05
parent6ed6476c4aefa9ee3ba90f39bcc002dd034f6e03
selftests: ublk: implement integrity user copy in kublk

If integrity data is enabled for kublk, allocate an integrity buffer for
each I/O. Extend ublk_user_copy() to copy the integrity data between the
ublk request and the integrity buffer if the ublksrv_io_desc indicates
that the request has integrity data.

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>
tools/testing/selftests/ublk/kublk.c
tools/testing/selftests/ublk/kublk.h