diff options
| author | Eric Dumazet <[email protected]> | 2010-10-23 15:18:01 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2010-10-26 01:26:11 +0000 |
| commit | f991bd2e14210fb93d722cb23e54991de20e8a3d (patch) | |
| tree | 60643fb9d828c388d963ceb26504dce9890eabbb /drivers/misc/ibmasm/ibmasmfs.c | |
| parent | new helper: ihold() (diff) | |
| download | kernel-f991bd2e14210fb93d722cb23e54991de20e8a3d.tar.gz kernel-f991bd2e14210fb93d722cb23e54991de20e8a3d.zip | |
fs: introduce a per-cpu last_ino allocator
new_inode() dirties a contended cache line to get increasing
inode numbers. This limits performance on workloads that cause
significant parallel inode allocation.
Solve this problem by using a per_cpu variable fed by the shared
last_ino in batches of 1024 allocations. This reduces contention on
the shared last_ino, and give same spreading ino numbers than before
(i.e. same wraparound after 2^32 allocations).
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/ibmasmfs.c')
0 files changed, 0 insertions, 0 deletions
