Details
-
Bug
-
Resolution: Fixed
-
Major
-
Lustre 2.1.0, Lustre 2.2.0, Lustre 2.3.0, Lustre 2.4.0
-
3
-
5913
Description
static int osc_shrink_grant(struct client_obd *cli)
{
long target = (cli->cl_max_rpcs_in_flight + 1) *
cli->cl_max_pages_per_rpc;
client_obd_list_lock(&cli->cl_loi_list_lock);
if (cli->cl_avail_grant <= target)
target = cli->cl_max_pages_per_rpc;
client_obd_list_unlock(&cli->cl_loi_list_lock);
return osc_shrink_grant_to_target(cli, target);
}
that function looks have a typo - cl_avail_grant in bytes, but target will be in pages so << CFS_PAGE_SHIFT looks lost.