]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: split workqueue destroy functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 15 Oct 2019 16:54:37 +0000 (12:54 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 15 Oct 2019 16:54:37 +0000 (12:54 -0400)
commit71296cf87ff5897c1e226fb44ecad735a74a6bd5
tree854ca8178f7d939c84d763a94c3cef8277d548a0
parentbfd9b38b1ebfeef7a278b4b4c861fa1452a32bbe
libfrog: split workqueue destroy functions

Split the workqueue destroy function into two parts -- one to signal all
the threads to exit and wait for them, and a second one that actually
destroys all the memory associated with the workqueue.  This mean we can
report latent workqueue errors independent of the freeing function.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/workqueue.c
libfrog/workqueue.h
repair/threads.c
scrub/fscounters.c
scrub/inodes.c
scrub/phase2.c
scrub/phase4.c
scrub/read_verify.c
scrub/spacemap.c
scrub/vfs.c