MRP-1306 target: Fix assigning an connection flag for export.

import LU-1623 to fix assigning a connection flags on mdt side.
take a MRP-1208 to fix conflict LU-1623 with 4MB IO.
add additional fixing for same error for OSS and MGS sides.

Change-Id: I68d81536e2506bb9cf56e6bb7ce039313eb39426
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/647
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Reviewed-by: Andrew Perepechko <Andrew_Perepechko@xyratex.com>
Reviewed-by: Sergey Cheremencev <Sergey_Cheremencev@xyratex.com>
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
MRP-1296 ldlm: ldlm_cancel_stale_locks()) ASSERTION( count > 0 ) failed

number of granted locks can be really huge.
Use 64bit math to calculate number of locks to cancel

Change-Id: Ia10c056a03750c242e6bb97dfad5718d54fe7e88
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/637
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
MRP-459 ptlrpc: reverts early changes

Revert "MRP-459 ptlrpc: Allow clients reconnect with RPCs in process"

This reverts commit 53b85fc4fbc0e69d08502a1681e92bf6d88e0f28.

Conflicts:

	lustre/ptlrpc/niobuf.c
	lustre/ptlrpc/service.c

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: I46bed8ccd087eafa1a5cfe88958e9b86d39de3dd
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/625
Tested-by: Jenkins
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>