[Devel] [PATCH rh7 2/2] mm/vmscan: add cond_resched() to loop in shrink_slab_memcg()

2021-02-01 Thread Andrey Ryabinin
shrink_slab_memcg() may iterate for a long time without resched if we have many memcg with small amount of objects. Add cond_resched() to avoid potential softlockup. https://jira.sw.ru/browse/PSBM-125095 Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 2 ++ 1 file changed, 2 insertions(+) diff

[Devel] [PATCH rh7 1/2] mm: memcg: fix memcg reclaim soft lockup

2021-02-01 Thread Andrey Ryabinin
From: Xunlei Pang We've met softlockup with "CONFIG_PREEMPT_NONE=y", when the target memcg doesn't have any reclaimable memory. It can be easily reproduced as below: watchdog: BUG: soft lockup - CPU#0 stuck for 111s![memcg_test:2204] CPU: 0 PID: 2204 Comm: memcg_test Not tainted 5.9.0-rc2+

[Devel] [PATCH vz8 1/2] ve/ext4: treat panic_on_errors as remount-ro_on_errors in CTs

2021-02-01 Thread Andrey Ryabinin
From: Dmitry Monakhov This is a port from 2.6.32-x of: * diff-ext4-in-containers-treat-panic_on_errors-as-remount-ro_on_errors ext4: in containers treat errors=panic as Container can explode whole node if it remounts its ploop with option 'errors=panic' and trig

[Devel] [PATCH vz8 2/2] jbd2: raid amnesia protection for the journal

2021-02-01 Thread Andrey Ryabinin
From: Dmitry Monakhov https://jira.sw.ru/browse/PSBM-15484 Some blockdevices can return different data on read requests from same block after power failure (for example mirrored raid is out of sync, and resync is in progress) In that case following sutuation is possible: Power failure happen af

[Devel] [PATCH RH7] ms/netfilter: nf_nat: don't bug when mapping already exists

2021-02-01 Thread Vasily Averin
It seems preferrable to limp along if we have a conflicting mapping, its certainly better than a BUG(). Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso (cherry picked from commit 75c2631468e8af554057246b2413e738dd96af3d) This patch fixes host crash during restart firewalld serv