]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - scrub/spacemap.c
libfrog: split workqueue destroy functions
[thirdparty/xfsprogs-dev.git] / scrub / spacemap.c
index 4258e318cf73579c4d702c28b4525c63e3684993..91e8badb7926dd4b3b838a338df01e8fc593abf3 100644 (file)
@@ -230,6 +230,11 @@ xfs_scan_all_spacemaps(
                }
        }
 out:
+       ret = workqueue_terminate(&wq);
+       if (ret) {
+               sbx.moveon = false;
+               str_liberror(ctx, ret, _("finishing fsmap work"));
+       }
        workqueue_destroy(&wq);
 
        return sbx.moveon;