diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-05-19 14:50:27 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-05-19 19:59:17 -0600 |
commit | 8284066946e6d9cc979566ce698fe24e7ca0b31e (patch) | |
tree | ac22ce70417d36d0b22edf5abd2ac8a065b0a9e9 /Documentation | |
parent | 981f95a571e3ca20a496c0b77dbf6b06039c6648 (diff) |
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 'Documentation')
0 files changed, 0 insertions, 0 deletions