Commit 7ba62f59 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

ublk: prepare for not tracking task context for command batch



batch io is designed to be independent of task context, and we will not
track task context for batch io feature.

Reviewed-by: default avatarCaleb Sander Mateos <csander@purestorage.com>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fb027d56
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2423,6 +2423,9 @@ static int __ublk_fetch(struct io_uring_cmd *cmd, struct ublk_device *ub,

	ublk_fill_io_cmd(io, cmd);

	if (ublk_dev_support_batch_io(ub))
		WRITE_ONCE(io->task, NULL);
	else
		WRITE_ONCE(io->task, get_task_struct(current));
	ublk_mark_io_ready(ub);