]> 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:51:01 +0000 (07:51 +0200)
commit6c2e136ffd056e460528518c902e0f3424b694cc
tree5876877f76334f109fb44f19c849b5eea6f50c9b
parentf0209397ed2c77d0d18ba7beb49f48e63009b3cd
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