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: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> [snitzer: introduced _with_ioprio() wrappers to reduce churn] Signed-off-by:
Mike Snitzer <snitzer@kernel.org> Bug: 331551156 Bug: 336946548 (cherry picked from commit e9b2238e) [Hongyu: Rewite patch ] Change-Id: I2a2674600cf6ffcd509c3e22ea8ad15d0b37764c Signed-off-by:
Hongyu Jin <hongyu.jin@unisoc.com>
Loading
Please sign in to comment