aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2025-04-22 21:18:33 +0200
committerMikulas Patocka <mpatocka@redhat.com>2025-04-23 13:09:15 +0200
commit0a533c3e4246c29d502a7e0fba0e86d80a906b04 (patch)
tree3a160dde17753d3bb6316a0f1aa679f1eb13ccb1
parentdm-bufio: don't schedule in atomic context (diff)
downloadwireguard-linux-0a533c3e4246c29d502a7e0fba0e86d80a906b04.tar.xz
wireguard-linux-0a533c3e4246c29d502a7e0fba0e86d80a906b04.zip
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 <mpatocka@redhat.com> Cc: stable@vger.kernel.org
Diffstat (limited to '')
-rw-r--r--drivers/md/dm-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c
index 2a283feb3319..cc3d3897ef42 100644
--- a/drivers/md/dm-integrity.c
+++ b/drivers/md/dm-integrity.c
@@ -5164,7 +5164,7 @@ static void dm_integrity_dtr(struct dm_target *ti)
BUG_ON(!RB_EMPTY_ROOT(&ic->in_progress));
BUG_ON(!list_empty(&ic->wait_list));
- if (ic->mode == 'B')
+ if (ic->mode == 'B' && ic->bitmap_flush_work.work.func)
cancel_delayed_work_sync(&ic->bitmap_flush_work);
if (ic->metadata_wq)
destroy_workqueue(ic->metadata_wq);