• Darrick J. Wong's avatar
    xfs: increase the default parallelism levels of pwork clients · f83d436a
    Darrick J. Wong authored
    Increase the parallelism level for pwork clients to the workqueue
    defaults so that we can take advantage of computers with a lot of CPUs
    and a lot of hardware.  On fast systems this will speed up quotacheck by
    a large factor, and the following posteof/cowblocks cleanup series will
    use the functionality presented in this patch to run garbage collection
    as quickly as possible.
    
    We do this by switching the pwork workqueue to unbounded, since the
    current user (quotacheck) runs lengthy scans for each work item and we
    don't care about dispatching the work on a warm cpu cache or anything
    like that.  Also set WQ_SYSFS so that we can monitor where the wq is
    running.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
    f83d436a
xfs_pwork.c 3.16 KB