Whamcloud - gitweb
LU-11919 llite: Initialize cl_dirty_max_pages 58/34458/3
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 4 Feb 2019 03:47:10 +0000 (22:47 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2019 06:28:29 +0000 (06:28 +0000)
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 <pfarrell@whamcloud.com>
Change-Id: Ie34306ae329e377520a7a4858ab969f901c6154d
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34458
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ldlm/ldlm_lib.c

index 9b5c425..ba4b19f 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;
+       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