MRP-489 ptlrpc: fix for the flock policy combinations

The current patch is intended to fix the issue with incorrect flock
policy determining. This issue is observed when 1.8 clients
with updated flock policies try to connect to the 2.x servers.
This patch intended for 2.x servers to let recognition for
updated 1.8 clients.

Signed-off-by: Iurii Golovach <iurii_golovach@xyratex.com>
Change-Id: I20a58ef8bf56ae35d21540e99a2631f385336164
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/120
Tested-by: Jenkins
Reviewed-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-by: Kyrylo Shatskyy <kyrylo_shatskyy@xyratex.com>
Tested-by: Kyrylo Shatskyy <kyrylo_shatskyy@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
MRP-874 deadlock of changelog storing & canceling

Provide correct locking order by starting transaction
before writing to llog

Change-Id: I6e854dee2e20ff500d514715a35fa3387a1060f4
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/271
Reviewed-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Tested-by: Jenkins
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Tested-by: Alexander Lezhoev <Alexander_Lezhoev@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
MRP-880 mgs: fix handling non IR targets.

treat as "none IR commands as register target" for non IR targets.

Change-Id: Iad95138ea54b9d7519f448f885823507bc97470f
WC-bug-id: LU-2896
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/298
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Tested-by: Alexander Lezhoev <Alexander_Lezhoev@xyratex.com>