diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-01-23 01:48:42 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-02-03 18:18:49 +0100 |
commit | 05a302a17062ca73dc91b508cf2a0b25724db15d (patch) | |
tree | 8a15ffcc486dd3e5ebdae0a1c8c9da2fa0c86876 /fs/xfs/xfs_super.h | |
parent | xfs: increase the default parallelism levels of pwork clients (diff) | |
download | linux-05a302a17062ca73dc91b508cf2a0b25724db15d.tar.xz linux-05a302a17062ca73dc91b508cf2a0b25724db15d.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_super.h')
-rw-r--r-- | fs/xfs/xfs_super.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_super.h b/fs/xfs/xfs_super.h index b552cf6d3379..1ca484b8357f 100644 --- a/fs/xfs/xfs_super.h +++ b/fs/xfs/xfs_super.h @@ -75,6 +75,12 @@ extern void xfs_qm_exit(void); XFS_ASSERT_FATAL_STRING \ XFS_DBG_STRING /* DBG must be last */ +#ifdef DEBUG +# define XFS_WQFLAGS(wqflags) (WQ_SYSFS | (wqflags)) +#else +# define XFS_WQFLAGS(wqflags) (wqflags) +#endif + struct xfs_inode; struct xfs_mount; struct xfs_buftarg; |