diff options
| author | Ming Lei <ming.lei@redhat.com> | 2026-03-31 23:31:57 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-04-07 07:42:23 -0600 |
| commit | ec20aa44ac2629943c9b2b5524bcb55d778f746c (patch) | |
| tree | 862bffd9b5e60c95b16517e99692f4ea8a1b0a01 /rust/kernel/gpu/git@git.tavy.me:linux-stable.git | |
| parent | 166b476b8dee61dc6501f6eb91619d28c3430f75 (diff) | |
selftests/ublk: add UBLK_F_SHMEM_ZC support for loop target
Add loop_queue_shmem_zc_io() which handles I/O requests marked with
UBLK_IO_F_SHMEM_ZC. When the kernel sets this flag, the request data
lives in a registered shared memory buffer — decode index + offset
from iod->addr and use the server's mmap as the I/O buffer.
The dispatch check in loop_queue_tgt_rw_io() routes SHMEM_ZC requests
to this new function, bypassing the normal buffer registration path.
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://patch.msgid.link/20260331153207.3635125-7-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/gpu/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
