]> git.itanic.dy.fi Git - linux-stable/commit
dm io: Support IO priority
authorHongyu Jin <hongyu.jin@unisoc.com>
Wed, 24 Jan 2024 05:35:53 +0000 (13:35 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:38 +0000 (18:17 -0400)
commit3d02f57794b56f8a04a21fdfb04f20a1c9f712a7
tree1944c117caf775f905aad4de111fc599cdb681a5
parentca0e491fcabf3c587f1e1cccb271960fb72fc34e
dm io: Support IO priority

[ Upstream commit 6e5f0f6383b4896c7e9b943d84b136149d0f45e9 ]

Some IO will dispatch from kworker with different io_context settings
than the submitting task, we may need to specify a priority to avoid
losing priority.

Add IO priority parameter to dm_io() and update all callers.

Co-developed-by: Yibin Ding <yibin.ding@unisoc.com>
Signed-off-by: Yibin Ding <yibin.ding@unisoc.com>
Signed-off-by: Hongyu Jin <hongyu.jin@unisoc.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Stable-dep-of: b4d78cfeb304 ("dm-integrity: align the outgoing bio in integrity_recheck")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-bufio.c
drivers/md/dm-integrity.c
drivers/md/dm-io.c
drivers/md/dm-kcopyd.c
drivers/md/dm-log.c
drivers/md/dm-raid1.c
drivers/md/dm-snap-persistent.c
drivers/md/dm-verity-target.c
drivers/md/dm-writecache.c
include/linux/dm-io.h