Whamcloud - gitweb
LU-4582 mgc: replace hard-coded MGC_ENQUEUE_LIMIT value 17/9217/2
authorCheng Shao <cheng_shao@xyratex.com>
Tue, 11 Feb 2014 03:36:16 +0000 (19:36 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 4 Jun 2014 23:00:34 +0000 (23:00 +0000)
commitfb7ac6a880b71cb9e0252bcbb6d9bbb4b4ddf7fd
tree5c6a60308d49787386c177e6c71caf6510f33ae6
parent1ebc8dc473dd9f948837b9d5b258194637d46525
LU-4582 mgc: replace hard-coded MGC_ENQUEUE_LIMIT value

During client mount, the client will send an LDLM_ENQUEUE request to
MGS with send delay set to MGC_ENQUEUE_LIMIT, which is hard coded to
50 seconds. On the other hand, the interval for pinger is deduced from
obd_timeout. When obd_timeout is configured for a longer period of
time, so does the pinger. We know that connecting to the secondary MGS
node is triggered by the pinger. Now that we have a longer interval,
the pinger will not be able to try the secondary before the
LDLM_ENQUEUE request fails the mount using the same delay limit.

This code change will replace the hard-coded send delay being
mentioned above with a value that is long enough to give the client a
chance to connect to the secondary MGS if exists.

Xyratex-bug-id: MRP-1516
Signed-off-by: Cheng Shao <cheng_shao@xyratex.com>
Change-Id: I256c533ca80a93e547afa21c4722d628911ae919
Reviewed-on: http://review.whamcloud.com/9217
Reviewed-by: Ryan Haasken <haasken@cray.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mgc/mgc_request.c