From 2e9c896dec6d5c582c5dd24d3026e8324dfa807c Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Sun, 3 Feb 2019 22:47:10 -0500 Subject: [PATCH 1/1] 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 Signed-off-by: Patrick Farrell Change-Id: Ie34306ae329e377520a7a4858ab969f901c6154d Reviewed-on: https://review.whamcloud.com/34173 Reviewed-by: Andreas Dilger Tested-by: Jenkins Reviewed-by: James Simmons Tested-by: Maloo Reviewed-by: Li Xi --- lustre/ldlm/ldlm_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 4b8aaef..5da5999 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 -- 1.8.3.1