summaryrefslogtreecommitdiffstats
path: root/drivers/block/zram
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2023-05-19 14:50:27 +0800
committerJens Axboe <axboe@kernel.dk>2023-05-19 19:59:17 -0600
commit8284066946e6d9cc979566ce698fe24e7ca0b31e (patch)
treeac22ce70417d36d0b22edf5abd2ac8a065b0a9e9 /drivers/block/zram
parent981f95a571e3ca20a496c0b77dbf6b06039c6648 (diff)
downloadlinux-stable-8284066946e6d9cc979566ce698fe24e7ca0b31e.tar.gz
linux-stable-8284066946e6d9cc979566ce698fe24e7ca0b31e.tar.bz2
linux-stable-8284066946e6d9cc979566ce698fe24e7ca0b31e.zip
ublk: grab request reference when the request is handled by userspace
Add one reference counter into request pdu data, and hold this reference in the request's lifetime. Prepare for supporting to move request data copy into userspace, which needs to copy request data by read()/write() on /dev/ublkcN, so we have to guarantee that read()/write() is done on one valid/active request, and that will be enhanced by holding the io request reference in read()/write(). Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20230519065030.351216-5-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/zram')
0 files changed, 0 insertions, 0 deletions