]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-verity: consolidate the BH and normal work structs
authorEric Biggers <ebiggers@kernel.org>
Sun, 11 Jan 2026 20:25:30 +0000 (12:25 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 14 Jan 2026 12:18:08 +0000 (13:18 +0100)
commit569e785957d7d27224e39d92bff4d20ab6aab324
treea4267e9e9777648ceb98e6765c5f4e1db9dc4ed3
parentd4880868670198df321627a949e7b7f2d76cf54e
dm-verity: consolidate the BH and normal work structs

Since each dm_verity_io is never on both the BH and normal workqueues at
the same time, there's no need for two different work_structs.  Replace
the 'bh_work' and 'work' fields with just 'work'.

Note: this is correct even though it means 'work' may be reused while
verity_bh_work() is running.  The workqueue API allows work functions to
reuse or free their work_struct, and many workqueue users rely on that.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-verity-target.c
drivers/md/dm-verity.h