If per-uid limit is exceeded, the cleanup fails to subtract from the global counter.
While here cleanup the code.
Differential D25787
vm: fix swap reservation leak mjg on Jul 23 2020, 1:35 PM. Authored by Tags None Referenced Files
Subscribers
Details If per-uid limit is exceeded, the cleanup fails to subtract from the global counter. While here cleanup the code.
Diff Detail
Event TimelineComment Actions Since you are doing cleanups, perhaps change the return type to bool, there and for swap_reserve().
Comment Actions
I'm working on a patch to introduce per-cpu counting here so this serves as a good prep.
|