Skip to content

Commit e934ca3

Browse files
committed
dm-integrity: fix a warning on invalid table line
JIRA: https://issues.redhat.com/browse/RHEL-92762 Upstream Status: kernel/git/torvalds/linux.git commit 0a533c3 Author: Mikulas Patocka <[email protected]> Date: Tue Apr 22 21:18:33 2025 +0200 dm-integrity: fix a warning on invalid table line If we use the 'B' mode and we have an invalit table line, cancel_delayed_work_sync would trigger a warning. This commit avoids the warning. Signed-off-by: Mikulas Patocka <[email protected]> Cc: [email protected] Signed-off-by: Benjamin Marzinski <[email protected]>
1 parent ae18a7e commit e934ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-integrity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5176,7 +5176,7 @@ static void dm_integrity_dtr(struct dm_target *ti)
51765176
BUG_ON(!RB_EMPTY_ROOT(&ic->in_progress));
51775177
BUG_ON(!list_empty(&ic->wait_list));
51785178

5179-
if (ic->mode == 'B')
5179+
if (ic->mode == 'B' && ic->bitmap_flush_work.work.func)
51805180
cancel_delayed_work_sync(&ic->bitmap_flush_work);
51815181
if (ic->metadata_wq)
51825182
destroy_workqueue(ic->metadata_wq);

0 commit comments

Comments
 (0)