Skip to content

Commit

Permalink
NFSD: Make the file_delayed_close workqueue UNBOUND
Browse files Browse the repository at this point in the history
workqueue: nfsd_file_delayed_close [nfsd] hogged CPU for >13333us 8
	times, consider switching to WQ_UNBOUND

There's no harm in closing a cached file descriptor on another core.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
  • Loading branch information
Chuck Lever committed Jan 7, 2024
1 parent f3734cc commit ce7df05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/filecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ nfsd_file_cache_init(void)
return ret;

ret = -ENOMEM;
nfsd_filecache_wq = alloc_workqueue("nfsd_filecache", 0, 0);
nfsd_filecache_wq = alloc_workqueue("nfsd_filecache", WQ_UNBOUND, 0);
if (!nfsd_filecache_wq)
goto out;

Expand Down

0 comments on commit ce7df05

Please sign in to comment.