Skip to content

Commit ba86cf8

Browse files
Don BradyDelphix Engineering
Don Brady
authored and
Delphix Engineering
committed
DLPX-74216 nfs-server restarts fail when order-5 allocations are exhausted (#3)
1 parent c5aebd0 commit ba86cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/filecache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ nfsd_file_cache_init(void)
634634
if (!nfsd_filecache_wq)
635635
goto out;
636636

637-
nfsd_file_hashtbl = kvcalloc(NFSD_FILE_HASH_SIZE,
638-
sizeof(*nfsd_file_hashtbl), GFP_KERNEL);
637+
nfsd_file_hashtbl = kvzalloc(array_size(NFSD_FILE_HASH_SIZE,
638+
sizeof(*nfsd_file_hashtbl)), GFP_KERNEL);
639639
if (!nfsd_file_hashtbl) {
640640
pr_err("nfsd: unable to allocate nfsd_file_hashtbl\n");
641641
goto out_err;

0 commit comments

Comments
 (0)