Whamcloud - gitweb
LU-11919 llite: Initialize cl_dirty_max_pages 73/34173/4
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 4 Feb 2019 03:47:10 +0000 (22:47 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Feb 2019 06:38:50 +0000 (06:38 +0000)
cl_dirty_max_pages must be initialized to zero before
calling client_adjust_max_dirty.

Test-Parameters: trivial

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ie34306ae329e377520a7a4858ab969f901c6154d
Reviewed-on: https://review.whamcloud.com/34173
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/ldlm/ldlm_lib.c

index 4b8aaef..5da5999 100644 (file)
@@ -359,6 +359,7 @@ int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg)
                     sizeof(server_uuid)));
 
        cli->cl_dirty_pages = 0;
                     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
        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