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

BACKPORT: dm-bufio: 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 dm_bufio_read_with_ioprio() and dm_bufio_prefetch_with_ioprio()
for use by bufio users to pass an ioprio other than IOPRIO_DEFAULT.

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>
[snitzer: introduced _with_ioprio() wrappers to reduce churn]
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>

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