MRP-975 ldlm: wrong handling of ldlm resends

If a successful reply is lost for an intent
lock request, MDS will not correctly recover
from this situation on resend. Instead, a new
lock is created.

Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Change-Id: I9a23c13313d5168d0c232fdc0acbdab330089356
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/1678
Tested-by: Jenkins
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
MRP-1779 test: write_append_truncate failed with divide error

fix trunc_size calculation in case of append_size == 1

Change-Id: I43f402918b75ab8942a8cf5a66214d2a10aae80d
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/1728
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <alexander_boyko@xyratex.com>
Reviewed-by: Rahul Deshmukh <rahul_deshmukh@xyratex.com>
Tested-by: Andrey Bondarenko <andrey_bondarenko@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1460 ost: fix obdo flag conflict for shortio

OBD_FL_SHORT_IO was not reserved at the master branch and was
rewritten by OBD_FL_FLUSH with new feature. This fix change value for
OBD_FL_SHORT_IO and resolve conflict for different client/server
version.

OBD_FL_FLUSH feature is not involved, it is used and set in separate
code paths and will always work correctly.

ShortIO is enabled by connect flag, so no problem when client or
server does not support it. Other interop cases:

1. neo 1.4 fixed client - neo 1.4 server
2. lustre 2.5 with fixed shortIO client - neo 1.4 server
new flag will not be recognised by server - FAILURE, shortIO pages
will be lost.

3. neo 1.4 client - neo 1.4 fixed server
4. neo 1.4 client - lustre 2.5 with fixed shortIO server
"fixed" server can recognise wrong flag sent by client, no problem
here.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: I05a9e50059010bb5bc0bd2d6987d56000429b90b
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/898
Tested-by: Jenkins
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>