+1
−29
Loading
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB5UKT -------------------------------- On demand loading mode in fscache_hash_cookie() have triggered softlockup. Following is the stack: fscache_hash_cookie hlist_bl_lock fscache_print_cookie pr_err printk ... console_unlock --continuous print data hlist_bl_unlock --not called Due to the slow transmission speed of the physical serial port and the large amount of data printing, printk will loop in console_unlock. So the process holds the lock and blocks others. To avoid similar problems, simply delete the fscache_print_cookie() as it is not necessary to print the internal state of the cookie. And replace pr_err() with pr_err_ratelimited() to limit its print speed. Fixes: ec0328e4 ("fscache: Maintain a catalogue of allocated cookies") Signed-off-by:Zizhi Wo <wozizhi@huawei.com> Signed-off-by:
Baokun Li <libaokun1@huawei.com>