Re: [Devel] [PATCH rh7 v2] mm/tcache: replace BUG_ON()s with WARN_ON()s

2017-11-30 Thread Kirill Tkhai
On 30.11.2017 16:43, Andrey Ryabinin wrote: > Tcache code filled with BUG_ON() checks. However the most cases > issues that BUG_ON() supposed to catch are not serious enough > to kill machine. So relax it's to WARN_ON. > Remove BUG_ON() in tcache_init_fs(), because it's useless. > It's called from

[Devel] [PATCH rh7 v2] mm/tcache: replace BUG_ON()s with WARN_ON()s

2017-11-30 Thread Andrey Ryabinin
Tcache code filled with BUG_ON() checks. However the most cases issues that BUG_ON() supposed to catch are not serious enough to kill machine. So relax it's to WARN_ON. Remove BUG_ON() in tcache_init_fs(), because it's useless. It's called from the only one place in the kernel, which looks like thi