Whamcloud - gitweb
LU-13212 osc: fall back to vmalloc for large RPCs 81/43281/3
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 12 Apr 2021 18:53:07 +0000 (12:53 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 Apr 2021 03:14:39 +0000 (03:14 +0000)
commit037a9e2cf6d5b8d6fdbcde02c1c22e22272c5c07
tree85977170c0387e7a8fdb671b16294284ea488b7f
parentc58ce2c18590c8fe378c7902303e8d036d41bfe4
LU-13212 osc: fall back to vmalloc for large RPCs

For large RPC sizes (16MB+) the page array (4096 brw_page) can
become very large (128KB+ with fscrypt) and should fall back to
vmalloc() if kmalloc() fails due to memory fragmentation.

The mdc/mdt allocations are currently limited to 1MB for readdir
RPCs, but it doesn't hurt to prepare them for larger RPCs from
clients in the future if this limit is increased.

Fixes: 51b32ac2b9b8 ("LU-7990 rpc: increase bulk size")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I56805f5701d6850412664ce0681a1456b9405580
Reviewed-on: https://review.whamcloud.com/43281
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_nids.c
lustre/obdecho/echo_client.c
lustre/osc/osc_request.c