]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: more robust allocation failure handling in nfsd_file_cache_init
authorAmir Goldstein <amir73il@gmail.com>
Thu, 24 Feb 2022 16:17:05 +0000 (18:17 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Feb 2022 15:26:40 +0000 (10:26 -0500)
commit6114bd52b7ced3718d2dd1668a7aa51a772adf2a
tree0160bc3b731f7234647be92842bf58ad9ce410a9
parent0a94bd03578c7f0126ee6ea7f84552936b795dda
nfsd: more robust allocation failure handling in nfsd_file_cache_init

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 420f385531bb ("nfsd: more robust allocation failure handling
in nfsd_reply_cache_init").

Fixes: a773ac40fe37 ("nfsd: add a new struct file caching facility to nfsd")
Link: https://lore.kernel.org/linux-nfs/e3cdaeec85a6cfec980e87fc294327c0381c1778.camel@kernel.org/
Suggested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Amir Goldstein <amir73il@gmail.com>
fs/nfsd/filecache.c