xfs: set WQ_SYSFS on all workqueues in debug mode
authorDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:48:42 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commit05a302a17062ca73dc91b508cf2a0b25724db15d
tree8a15ffcc486dd3e5ebdae0a1c8c9da2fa0c86876
parentf83d436aef5def77b318effc14809fdc57092588
xfs: set WQ_SYSFS on all workqueues in debug mode

When CONFIG_XFS_DEBUG=y, set WQ_SYSFS on all workqueues that we create
so that we (developers) have a means to monitor cpu affinity and whatnot
for background workers.  In the next patchset we'll expose knobs for
more of the workqueues publicly and document it, but not now.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_mru_cache.c
fs/xfs/xfs_super.c
fs/xfs/xfs_super.h