aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorHongyu Jin <[email protected]>2024-01-24 13:35:56 +0800
committerMike Snitzer <[email protected]>2024-02-20 14:22:55 -0500
commit5d8d40815314684af2593c075e6eee1afb42bb92 (patch)
treeeb5ad49cd4f8932d9716f3ca481164253f7c627f /lib/test_fortify/write_overflow-strncpy-src.c
parentd95e2c34a3ca76861014cde4205934e434c27c45 (diff)
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/[email protected] Signed-off-by: Hongyu Jin <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Reviewed-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions