]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: enable UBLK_F_SHMEM_ZC feature flag
authorMing Lei <ming.lei@redhat.com>
Tue, 31 Mar 2026 15:31:54 +0000 (23:31 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Apr 2026 13:39:24 +0000 (07:39 -0600)
commit08677040a91199175149d1fd465c02e3b3fc768a
tree0596b119af77e071ed4f0acf4067644319a5ae7b
parent4d4a512a1f87b156f694d25c800e3d525aa56e8a
ublk: enable UBLK_F_SHMEM_ZC feature flag

Add UBLK_F_SHMEM_ZC (1ULL << 19) to the UAPI header and UBLK_F_ALL.
Switch ublk_support_shmem_zc() and ublk_dev_support_shmem_zc() from
returning false to checking the actual flag, enabling the shared
memory zero-copy feature for devices that request it.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://patch.msgid.link/20260331153207.3635125-4-ming.lei@redhat.com
[axboe: ublk_buf_reg -> ublk_shmem_buf_reg errors]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/ublk.rst
drivers/block/ublk_drv.c
include/uapi/linux/ublk_cmd.h