]> www.infradead.org Git - users/dwmw2/linux.git/commit
ublk: call io_uring_cmd_to_pdu to get uring_cmd pdu
authorMing Lei <ming.lei@redhat.com>
Thu, 27 Mar 2025 09:51:14 +0000 (17:51 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Mar 2025 22:15:42 +0000 (16:15 -0600)
commitb460f328e257db6af0d127fc8a2437f64ad01d3a
treee6e3d4e13da674cb223819cdf2a210ca4f71553e
parent1d781c0de08c0b35948ad4aaf609a4cc9995d9f6
ublk: call io_uring_cmd_to_pdu to get uring_cmd pdu

Call io_uring_cmd_to_pdu() to get uring_cmd pdu, and one big benefit
is the automatic pdu size build check.

Suggested-by: Uday Shankar <ushankar@purestorage.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250327095123.179113-6-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c