MRP-2046 utils: "-G <value>" can be passed trough mkfs options

mkfs.lustre util checks if parametrs already contain "flex_bg"
option (number of block groups that will be packed together
to create a larger virtual block group)  and adds this option
if it doesn't exists. But second parameter "-G" (number of block
groups that will be packed together to create a larger virtual
block group) can be added twice: one passed trough mkfs options
and another one - default value. In this case this parameter
is not changed actually and default value is applied.

This patch adds extra check. Default option "-G" is added
only if no "-G" option passed through mkfs options.

Change-Id: Ibf513531f347e8d1c10ce0ab572c1e7651120a26
Signed-off-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3625
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Tested-by: Jenkins
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2108 libcfs: watchdog dispatch thread fix

lc_watchdogd may stop imediately after start
because nobody clears the stop flag.

Change-Id: I1eaaf0330c111b7f2b17081c716ef8c200677d6b
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3805
Tested-by: Jenkins
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2093 mdd: wrong credit calculation in mdd_link

1) initialise linkea_data and pass correct buffer size to
   mdd_declare_links_add();
2) osd_declare_xattr_set should reserve 3 (block itself, bitmap, dp)
   credits per each block in buffer;
3) fix a check for initilized linkea buffer in mdd_declare_links_add().

Change-Id: I0ef3e2b3fe1355f70a49d79cf26f89c5f10aa795
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3930
Tested-by: Jenkins
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-1679 ptlrpc: don't send reply when imp closed

We don't need to send replies after client eviction
(when import state is LUSTRE_IMP_CLOSED).

Change-Id: Ia241b91ddefce1ffc6e2949199f833a234825c60
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Andriy Skulysh <andriy_skulysh@xyratex.com>
Tested-by: Alexander Lezhoev <alexander_lezhoev@xyratex.com>