X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fldlm%2Fldlm_lib.c;h=47279bae1ff6d957220b03c69076b3edd97d1245;hp=7c4bbb7d4d61d179c71265b54f86899c3d6cb2a6;hb=c4220f43d3aa7c938808da60a925d67904cc3ece;hpb=c16afc7c5c0ca969e3a5ac93773dffb7531522ab diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 7c4bbb7..47279ba 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -400,6 +400,10 @@ int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg) cli->cl_max_pages_per_rpc = min_t(int, PTLRPC_MAX_BRW_PAGES, LNET_MTU >> PAGE_CACHE_SHIFT); + /* set cl_chunkbits default value to PAGE_CACHE_SHIFT, + * it will be updated at OSC connection time. */ + cli->cl_chunkbits = PAGE_CACHE_SHIFT; + if (!strcmp(name, LUSTRE_MDC_NAME)) { cli->cl_max_rpcs_in_flight = MDC_MAX_RIF_DEFAULT; } else if (totalram_pages >> (20 - PAGE_CACHE_SHIFT) <= 128 /* MB */) {