nfsd: more robust allocation failure handling in nfsd_file_cache_init
stable inclusion from stable-v5.10.110 commit 85cc399b650f10378b2753a1a5e13442f44277be bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=85cc399b650f10378b2753a1a5e13442f44277be -------------------------------- [ Upstream commit 4d2eeafe ] The nfsd file cache table can be pretty large and its allocation may require as many as 80 contigious pages. Employ the same fix that was employed for similar issue that was reported for the reply cache hash table allocation several years ago by commit 8f97514b ("nfsd: more robust allocation failure handling in nfsd_reply_cache_init"). Fixes: 65294c1f ("nfsd: add a new struct file caching facility to nfsd") Link: https://lore.kernel.org/linux-nfs/e3cdaeec85a6cfec980e87fc294327c0381c1778.camel@kernel.org/Suggested-by: NJeff Layton <jlayton@kernel.org> Signed-off-by: NAmir Goldstein <amir73il@gmail.com> Reviewed-by: NJeff Layton <jlayton@kernel.org> Signed-off-by: NChuck Lever <chuck.lever@oracle.com> Tested-by: NAmir Goldstein <amir73il@gmail.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYu Liao <liaoyu15@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录