]> 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:47:07 +0000 (07:47 +0200)
commit342a5dfc21ca8c288cc5d3e1db6c3ced0eb3a17f
treee147b7a9c6afff566db58287c5d9d402aa3c02e3
parentddc9ef51bca3ee5009a5812a75baad56ae5ab677
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