@@ -641,6 +641,13 @@ struct ptlrpc_service *
service->srv_rep_portal = conf->psc_buf.bc_rep_portal;
service->srv_req_portal = conf->psc_buf.bc_req_portal;
+ /* With slab/alloc_pages buffer size will be rounded up to 2^n */
+ if (service->srv_buf_size & (service->srv_buf_size - 1)) {
+ int round = size_roundup_power2(service->srv_buf_size);
+
+ service->srv_buf_size = round;
+ }
+
/* Increase max reply size to next power of two */
service->srv_max_reply_size = 1;
while (service->srv_max_reply_size <