Whamcloud - gitweb
LU-7920 hsm: Account for decreasing max request count 82/19382/3
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Thu, 7 Apr 2016 11:58:37 +0000 (07:58 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:53:33 +0000 (03:53 +0000)
If HSM is active and the max request count is decreased, account for
that when checking to see if more requests should be started.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I4dcf9ea192f9b354a9933e08d2ced9ced7b3bc7c
Reviewed-on: http://review.whamcloud.com/19382
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_coordinator.c

index caa57ca..9669fec 100644 (file)
@@ -179,7 +179,7 @@ static int mdt_coordinator_cb(const struct lu_env *env,
                int i, empty_slot, found;
 
                /* Are agents full? */
-               if (atomic_read(&cdt->cdt_request_count) ==
+               if (atomic_read(&cdt->cdt_request_count) >=
                    cdt->cdt_max_requests)
                        break;
 
@@ -521,7 +521,7 @@ static int mdt_coordinator(void *data)
                        enum agent_req_status    status;
 
                        /* still room for work ? */
-                       if (atomic_read(&cdt->cdt_request_count) ==
+                       if (atomic_read(&cdt->cdt_request_count) >=
                            cdt->cdt_max_requests)
                                break;