Commit cb9af76a authored by Baokun Li's avatar Baokun Li Committed by Long Li
Browse files

xfs: propagate the return value of xfs_log_force() to avoid soft lockup

hulk inclusion
category: bugfix
bugzilla: 188871, https://gitee.com/openeuler/kernel/issues/I76JSK


CVE: NA

--------------------------------

xfs_alloc_ag_vextent_near() may keep restarting after xfs shutdown,
triggering soft lockup, because although xfs_log_force() detects that
the current filesystem has been shut down and returns an error, but
xfs_extent_busy _flush() is a void function, so xfs_alloc_ag_vextent_near()
does not sense that the current filesystem has been shut down. So we avoid
this problem by propagating the return value of xfs_log_force() so that
xfs_alloc_ag_vextent_near() does not restart and retry when the file system
is shut down, and exits directly.

Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 9254c51e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment