]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: remove unnecessary wakeup wait in scan_fs_tree
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Sep 2019 17:46:06 +0000 (13:46 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 26 Sep 2019 17:46:06 +0000 (13:46 -0400)
commit44012ab058c10d88a3ecf2bfb3cdeb5281718d49
tree6e94cab43c640f3bd62b353a55e6b24391c94755
parent4953e7098af1e15dc554271e91b2e4491f4e22cc
xfs_scrub: remove unnecessary wakeup wait in scan_fs_tree

We don't need to wait on the condition variable if directory tree
scanning has already finished by the time we've finished queueing all
the directory work items.  This is easy to trigger when the workqueue is
single-threaded, but in theory it could happen any time.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/vfs.c