Commit b38e9124 authored by Hongyu Jin's avatar Hongyu Jin Committed by zuofa liu
Browse files

BACKPORT: dm-io: Support IO priority



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: default avatarYibin Ding <yibin.ding@unisoc.com>
Signed-off-by: default avatarYibin Ding <yibin.ding@unisoc.com>
Signed-off-by: default avatarHongyu Jin <hongyu.jin@unisoc.com>
Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
Reviewed-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>

Bug: 331551156
Bug: 336946548
(cherry picked from commit 6e5f0f63)
[Hongyu: Rewrite the patch ]
Change-Id: I366bd02d1eb9b41bb13a2d9cc985f9ab278973c1
Signed-off-by: default avatarHongyu Jin <hongyu.jin@unisoc.com>
parent cb8a2055
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment