aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-11-21 09:57:50 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-11-21 16:16:54 +0000
commit3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343 (patch)
tree018a2e518a0c38b1d9aa90260cc894eca42e3222 /scripts/lib/kdoc/kdoc_files.py
parentf2fs: print message if fscorrupted was found in f2fs_new_node_page() (diff)
downloadwireguard-linux-3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343.tar.xz
wireguard-linux-3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343.zip
f2fs: fix to shrink read extent node in batches
We use rwlock to protect core structure data of extent tree during its shrink, however, if there is a huge number of extent nodes in extent tree, during shrink of extent tree, it may hold rwlock for a very long time, which may trigger kernel hang issue. This patch fixes to shrink read extent node in batches, so that, critical region of the rwlock can be shrunk to avoid its extreme long time hold. Reported-by: Xiuhong Wang <xiuhong.wang@unisoc.com> Closes: https://lore.kernel.org/linux-f2fs-devel/20241112110627.1314632-1-xiuhong.wang@unisoc.com/ Signed-off-by: Xiuhong Wang <xiuhong.wang@unisoc.com> Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions