dm verity: Fix IO priority lost when reading FEC and hash
authorHongyu Jin <hongyu.jin@unisoc.com>
Wed, 24 Jan 2024 05:35:55 +0000 (13:35 +0800)
committerMike Snitzer <snitzer@kernel.org>
Tue, 20 Feb 2024 19:22:55 +0000 (14:22 -0500)
commitd95e2c34a3ca76861014cde4205934e434c27c45
tree9e188fc32ee0b55bf44c59d5a811f4d20dfe8739
parente9b2238e47cb66521381c0bf9234e979afa19d77
dm verity: Fix IO priority lost when reading FEC and hash

After obtaining the data, verification or error correction process may
trigger a new IO that loses the priority of the original IO, that is,
the verification of the higher priority IO may be blocked by the lower
priority IO.

Make the IO used for verification and error correction follow the
priority of the original IO.

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>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-verity-fec.c
drivers/md/dm-verity-target.c