ZiyangZhang 92cb6e2e5d ublk_drv: update iod->addr for UBLK_IO_NEED_GET_DATA
If ublksrv sends UBLK_IO_NEED_GET_DATA with new allocated io buffer, we
have to update iod->addr in task_work before calling io_uring_cmd_done().
Then usersapce target can handle (write)io request with the new io
buffer reading from updated iod.

Without this change, userspace target may touch a wrong io buffer!

Signed-off-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220810055212.66417-1-ZiyangZhang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-08-13 08:35:28 -06:00
..
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-07-14 12:14:31 -06:00
2022-07-14 12:14:31 -06:00
2022-08-02 17:22:46 -06:00
2022-06-28 06:33:15 -06:00
2022-08-02 17:22:46 -06:00
2022-06-28 06:33:15 -06:00
2022-08-02 17:22:41 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-08-02 13:46:35 -07:00
2022-06-28 06:33:15 -06:00