Commits
Pavel Emelianov authored 4165f1fa371
[UBC] Don't allow precharged files exhaust kmemsize When file is put it may be added to precharged value to some task thus holding UB_NUMFULE and UB_KMEMSIZE resources. The problem is that files do not start uncharging till ub_barrier_farnr() is hit for UB_NUMFILE. For ub0 ub_barrier_farnr() can happen only after hitting kmemsize barrier. Thus kmemsize reurce gets completely exhausted. On 2.6.9 this problem is not easyli reproducible as files are put in the context of closing task usually. On 2.6.16 files are put via RCU and thus - in other task's context. http://forum.openvz.org/index.php?t=msg&th=1243&#msg_6933