https://github.com/torvalds/linux
Revision a8fd1f71749387c9a1053a83ff1c16287499a4e7 authored by Jeff Mahoney on 16 February 2018, 03:59:47 UTC, committed by David Sterba on 01 March 2018, 15:15:36 UTC
The srcu_struct in btrfs_fs_info scales in size with NR_CPUS.  On
kernels built with NR_CPUS=8192, this can result in kmalloc failures
that prevent mounting.

There is work in progress to try to resolve this for every user of
srcu_struct but using kvzalloc will work around the failures until
that is complete.

As an example with NR_CPUS=512 on x86_64: the overall size of
subvol_srcu is 3460 bytes, fs_info is 6496.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
1 parent fd649f1
History
Tip revision: a8fd1f71749387c9a1053a83ff1c16287499a4e7 authored by Jeff Mahoney on 16 February 2018, 03:59:47 UTC
btrfs: use kvzalloc to allocate btrfs_fs_info
Tip revision: a8fd1f7
File Mode Size
Makefile -rw-r--r-- 361 bytes
compat.c -rw-r--r-- 2.2 KB
ipc_sysctl.c -rw-r--r-- 5.4 KB
mq_sysctl.c -rw-r--r-- 2.9 KB
mqueue.c -rw-r--r-- 40.1 KB
msg.c -rw-r--r-- 27.4 KB
msgutil.c -rw-r--r-- 3.6 KB
namespace.c -rw-r--r-- 4.8 KB
sem.c -rw-r--r-- 58.1 KB
shm.c -rw-r--r-- 38.6 KB
syscall.c -rw-r--r-- 4.3 KB
util.c -rw-r--r-- 22.2 KB
util.h -rw-r--r-- 7.2 KB

back to top