From: Patrick Farrell Date: Mon, 4 Feb 2019 03:47:10 +0000 (-0500) Subject: LU-11919 llite: Initialize cl_dirty_max_pages X-Git-Tag: 2.12.1-RC1~38 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7c8d60106acd5a781660a05fef7612a7db5b243f;p=fs%2Flustre-release.git LU-11919 llite: Initialize cl_dirty_max_pages cl_dirty_max_pages must be initialized to zero before calling client_adjust_max_dirty. Test-Parameters: trivial Lustre-change: https://review.whamcloud.com/34173 Lustre-commit: 2e9c896dec6d5c582c5dd24d3026e8324dfa807c Signed-off-by: Patrick Farrell Change-Id: Ie34306ae329e377520a7a4858ab969f901c6154d Reviewed-by: James Simmons Reviewed-by: Li Xi Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/34458 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo --- diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 9b5c425..ba4b19f 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -359,6 +359,7 @@ int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg) sizeof(server_uuid))); cli->cl_dirty_pages = 0; + cli->cl_dirty_max_pages = 0; cli->cl_avail_grant = 0; /* FIXME: Should limit this for the sum of all cl_dirty_max_pages. */ /* cl_dirty_max_pages may be changed at connect time in