Repository navigation
Commit b5d8ca7
[PATCH] slab: remove cachep->spinlock
Remove cachep->spinlock. Locking has moved to the kmem_list3 and most of
the structures protected earlier by cachep->spinlock is now protected by
the l3->list_lock. slab cache tunables like batchcount are accessed always
with the cache_chain_mutex held.
Patch tested on SMP and NUMA kernels with dbench processes running,
constant onlining/offlining, and constant cache tuning, all at the same
time.
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Cc: Christoph Lameter <christoph@lameter.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>1 parent a737b3e commit b5d8ca7
1 file changed
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| 379 | + | |
378 | 380 | | |
379 | | - | |
| 381 | + | |
380 | 382 | | |
| 383 | + | |
381 | 384 | | |
382 | 385 | | |
383 | | - | |
384 | 386 | | |
385 | | - | |
| 387 | + | |
386 | 388 | | |
387 | 389 | | |
388 | 390 | | |
| |||
401 | 403 | | |
402 | 404 | | |
403 | 405 | | |
404 | | - | |
| 406 | + | |
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
408 | | - | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
661 | 663 | | |
662 | 664 | | |
663 | 665 | | |
664 | | - | |
665 | 666 | | |
666 | 667 | | |
667 | 668 | | |
| |||
2057 | 2058 | | |
2058 | 2059 | | |
2059 | 2060 | | |
2060 | | - | |
2061 | 2061 | | |
2062 | 2062 | | |
2063 | 2063 | | |
| |||
3425 | 3425 | | |
3426 | 3426 | | |
3427 | 3427 | | |
| 3428 | + | |
3428 | 3429 | | |
3429 | 3430 | | |
3430 | 3431 | | |
| |||
3446 | 3447 | | |
3447 | 3448 | | |
3448 | 3449 | | |
3449 | | - | |
3450 | 3450 | | |
3451 | 3451 | | |
3452 | 3452 | | |
3453 | | - | |
3454 | 3453 | | |
3455 | 3454 | | |
3456 | 3455 | | |
| |||
3471 | 3470 | | |
3472 | 3471 | | |
3473 | 3472 | | |
| 3473 | + | |
3474 | 3474 | | |
3475 | 3475 | | |
3476 | 3476 | | |
| |||
3705 | 3705 | | |
3706 | 3706 | | |
3707 | 3707 | | |
3708 | | - | |
3709 | 3708 | | |
3710 | 3709 | | |
3711 | 3710 | | |
| |||
3788 | 3787 | | |
3789 | 3788 | | |
3790 | 3789 | | |
3791 | | - | |
3792 | 3790 | | |
3793 | 3791 | | |
3794 | 3792 | | |
| |||
0 commit comments