Commit ab2f752
committed
slab: remove defer_deactivate_slab()
There are no more cpu slabs so we don't need their deferred
deactivation. The function is now only used from places where we
allocate a new slab but then can't spin on node list_lock to put it on
the partial list. Instead of the deferred action we can free it directly
via __free_slab(), we just need to tell it to use _nolock() freeing of
the underlying pages and take care of the accounting.
Since free_frozen_pages_nolock() variant does not yet exist for code
outside of the page allocator, create it as a trivial wrapper for
__free_frozen_pages(..., FPI_TRYLOCK).
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Reviewed-by: Hao Li <hao.li@linux.dev>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent bdc9282 commit ab2f752
4 files changed
Lines changed: 28 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| 849 | + | |
849 | 850 | | |
850 | 851 | | |
851 | 852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2981 | 2981 | | |
2982 | 2982 | | |
2983 | 2983 | | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
2984 | 2989 | | |
2985 | 2990 | | |
2986 | 2991 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 74 | + | |
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3262 | 3262 | | |
3263 | 3263 | | |
3264 | 3264 | | |
3265 | | - | |
| 3265 | + | |
3266 | 3266 | | |
3267 | 3267 | | |
3268 | 3268 | | |
| |||
3273 | 3273 | | |
3274 | 3274 | | |
3275 | 3275 | | |
3276 | | - | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
3277 | 3289 | | |
3278 | 3290 | | |
3279 | 3291 | | |
3280 | 3292 | | |
3281 | 3293 | | |
3282 | 3294 | | |
3283 | | - | |
| 3295 | + | |
3284 | 3296 | | |
3285 | 3297 | | |
3286 | 3298 | | |
| |||
3296 | 3308 | | |
3297 | 3309 | | |
3298 | 3310 | | |
3299 | | - | |
| 3311 | + | |
3300 | 3312 | | |
3301 | 3313 | | |
3302 | 3314 | | |
| |||
3389 | 3401 | | |
3390 | 3402 | | |
3391 | 3403 | | |
3392 | | - | |
3393 | | - | |
3394 | 3404 | | |
3395 | 3405 | | |
3396 | 3406 | | |
| |||
3406 | 3416 | | |
3407 | 3417 | | |
3408 | 3418 | | |
3409 | | - | |
3410 | | - | |
| 3419 | + | |
| 3420 | + | |
3411 | 3421 | | |
3412 | 3422 | | |
3413 | 3423 | | |
| |||
4279 | 4289 | | |
4280 | 4290 | | |
4281 | 4291 | | |
4282 | | - | |
| 4292 | + | |
4283 | 4293 | | |
4284 | 4294 | | |
4285 | 4295 | | |
| |||
6059 | 6069 | | |
6060 | 6070 | | |
6061 | 6071 | | |
6062 | | - | |
6063 | 6072 | | |
6064 | 6073 | | |
6065 | 6074 | | |
6066 | 6075 | | |
6067 | 6076 | | |
6068 | 6077 | | |
6069 | 6078 | | |
6070 | | - | |
6071 | 6079 | | |
6072 | 6080 | | |
6073 | 6081 | | |
6074 | 6082 | | |
6075 | 6083 | | |
6076 | | - | |
| 6084 | + | |
6077 | 6085 | | |
6078 | 6086 | | |
6079 | 6087 | | |
6080 | 6088 | | |
6081 | 6089 | | |
6082 | 6090 | | |
6083 | | - | |
6084 | 6091 | | |
6085 | 6092 | | |
6086 | | - | |
| 6093 | + | |
6087 | 6094 | | |
6088 | 6095 | | |
6089 | 6096 | | |
| |||
6107 | 6114 | | |
6108 | 6115 | | |
6109 | 6116 | | |
6110 | | - | |
6111 | | - | |
6112 | | - | |
6113 | | - | |
6114 | | - | |
6115 | | - | |
6116 | | - | |
6117 | | - | |
6118 | | - | |
6119 | | - | |
6120 | 6117 | | |
6121 | 6118 | | |
6122 | 6119 | | |
| |||
6132 | 6129 | | |
6133 | 6130 | | |
6134 | 6131 | | |
6135 | | - | |
6136 | | - | |
6137 | | - | |
6138 | | - | |
6139 | | - | |
6140 | | - | |
6141 | | - | |
6142 | | - | |
6143 | | - | |
6144 | | - | |
6145 | | - | |
6146 | | - | |
6147 | | - | |
6148 | 6132 | | |
6149 | 6133 | | |
6150 | 6134 | | |
| |||
0 commit comments