mirror of https://github.com/torvalds/linux.git
ublk: don't pass ublk_queue to ublk_fetch()
ublk_fetch() only uses the ublk_queue to get the ublk_device, which its caller already has. So just pass the ublk_device directly. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
23c014448e
commit
3576e60a33
|
|
@ -2206,10 +2206,9 @@ static int ublk_check_fetch_buf(const struct ublk_device *ub, __u64 buf_addr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ublk_fetch(struct io_uring_cmd *cmd, struct ublk_queue *ubq,
|
||||
static int ublk_fetch(struct io_uring_cmd *cmd, struct ublk_device *ub,
|
||||
struct ublk_io *io, __u64 buf_addr)
|
||||
{
|
||||
struct ublk_device *ub = ubq->dev;
|
||||
int ret = 0;
|
||||
|
||||
/*
|
||||
|
|
@ -2343,7 +2342,7 @@ static int ublk_ch_uring_cmd_local(struct io_uring_cmd *cmd,
|
|||
ret = ublk_check_fetch_buf(ub, addr);
|
||||
if (ret)
|
||||
goto out;
|
||||
ret = ublk_fetch(cmd, ubq, io, addr);
|
||||
ret = ublk_fetch(cmd, ub, io, addr);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue