BACKPORT: dm-crypt: Fix IO priority lost when queuing write bios
Since dm-crypt queues writes to a different kernel thread (workqueue), the bios will dispatch from tasks with different io_context->ioprio settings and blkcg than the submitting task, thus giving incorrect ioprio to the io scheduler. Get the original IO priority setting via struct dm_crypt_io::base_bio and set this priority in the bio for write. Link: https://lore.kernel.org/dm-devel/alpine.LRH.2.11.1612141049250.13402@mail.ewheeler.net 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> Bug: 331551156 (cherry picked from commit 5d8d4081) Change-Id: I08620abb8c77d9610fc093e456a11b66c8396c70 Signed-off-by:
Hongyu Jin <hongyu.jin@unisoc.com>
Loading
Please sign in to comment