]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
loop: aio inherit the ioprio of original request
authorYunlong Xing <yunlong.xing@unisoc.com>
Mon, 14 Apr 2025 03:01:59 +0000 (11:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:38 +0000 (07:44 +0200)
commit7dd6ab7f467c14d301ae3d64a52791e258e5b018
tree8f70a1de52d053723eaa6de471b7a972277e7bf4
parent1d8f9378cb4800c18e20d80ecd605b2b93e87a03
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 <yunlong.xing@unisoc.com>
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250414030159.501180-1-yunlong.xing@unisoc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/loop.c