summaryrefslogtreecommitdiff
path: root/kernel/fail_function.c
diff options
context:
space:
mode:
authorStanley Zhang <stazhang@purestorage.com>2026-01-08 02:19:37 -0700
committerJens Axboe <axboe@kernel.dk>2026-01-12 09:16:38 -0700
commitbe82a89066d595da334f6e153ababcedc3f92ad6 (patch)
tree747e87ae09f2814d5f90c048bff9f596957c8e34 /kernel/fail_function.c
parentfd5a005fa6a261762292a2d89ef8d0174b66f541 (diff)
ublk: implement integrity user copy
Add a function ublk_copy_user_integrity() to copy integrity information between a request and a user iov_iter. This mirrors the existing ublk_copy_user_pages() but operates on request integrity data instead of regular data. Check UBLKSRV_IO_INTEGRITY_FLAG in iocb->ki_pos in ublk_user_copy() to choose between copying data or integrity data. [csander: change offset units from data bytes to integrity data bytes, fix CONFIG_BLK_DEV_INTEGRITY=n build, rebase on user copy refactor] Signed-off-by: Stanley Zhang <stazhang@purestorage.com> 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>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions