summaryrefslogtreecommitdiffstats
path: root/module/zfs/zcp_global.c
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2019-06-25 15:03:38 -0400
committerBrian Behlendorf <[email protected]>2019-06-25 12:03:38 -0700
commitfc7546777ba15a7fff651cd803bf521f592d8379 (patch)
tree8c4b293b0def171817efca85346cb55e22209f5d /module/zfs/zcp_global.c
parent5279ae918befc707b3b2c5e9b97e2b6e8d033d99 (diff)
Avoid extra taskq_dispatch() calls by DMU
DMU sync code calls taskq_dispatch() for each sublist of os_dirty_dnodes and os_synced_dnodes. Since the number of sublists by default is equal to number of CPUs, it will dispatch equal, potentially large, number of tasks, waking up many CPUs to handle them, even if only one or few of sublists actually have any work to do. This change adds check for empty sublists to avoid this. Reviewed by: Sean Eric Fagan <[email protected]> Reviewed by: Matt Ahrens <[email protected]> Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Closes #8909
Diffstat (limited to 'module/zfs/zcp_global.c')
0 files changed, 0 insertions, 0 deletions