[PATCH v5 4/6] fs/dcache: Spread negative dentry pruning across multiple CPUs

2018-07-01 Thread Waiman Long
Doing negative dentry pruning using schedule_delayed_work() will typically concentrate the pruning effort on one particular CPU. That is not fair to the tasks running on that CPU. In addition, it is possible that one CPU can have all its negative dentries pruned away while the others can still

[PATCH v5 4/6] fs/dcache: Spread negative dentry pruning across multiple CPUs

2018-07-01 Thread Waiman Long
Doing negative dentry pruning using schedule_delayed_work() will typically concentrate the pruning effort on one particular CPU. That is not fair to the tasks running on that CPU. In addition, it is possible that one CPU can have all its negative dentries pruned away while the others can still