Skip to content

Commit 86799e2

Browse files
Yunlong Xingvijay-suman
authored andcommitted
loop: aio inherit the ioprio of original request
[ Upstream commit 1fdb8188c3d505452b40cdb365b1bb32be533a8e ] Set cmd->iocb.ki_ioprio to the ioprio of loop device's request. The purpose is to inherit the original request ioprio in the aio flow. Signed-off-by: Yunlong Xing <[email protected]> Signed-off-by: Zhiguo Niu <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 7dd6ab7f467c14d301ae3d64a52791e258e5b018) Signed-off-by: Vijayendra Suman <[email protected]>
1 parent 52b40d1 commit 86799e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd,
605605
cmd->iocb.ki_filp = file;
606606
cmd->iocb.ki_complete = lo_rw_aio_complete;
607607
cmd->iocb.ki_flags = IOCB_DIRECT;
608-
cmd->iocb.ki_ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, 0);
608+
cmd->iocb.ki_ioprio = req_get_ioprio(rq);
609609

610610
if (rw == WRITE)
611611
ret = call_write_iter(file, &cmd->iocb, &iter);

0 commit comments

Comments
 (0)