MRP-1267 don't share FS struct for a threads with disk IO.

ldlm_poold, ldlm_elt, mgs_reenqueu threads may do own IO,
but share a same FS structs that may produce a data corruption
with writing to the wrong parttion.

Change-Id: Iaaf725623b4c6378d539895ae9c4ea48f99bb4a4
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/628
Tested-by: Jenkins
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Denis Kondratenko <Denis_Kondratenko@xyratex.com>
MRP-1208 mdt: Atomically update MDT exp_connect_data

don't copy exp_connect_data in mdt_connect_internal()
it restores original LU-1623 behaviour.

Change-Id: Ib25c7b67be4f9e688096db8b5f15d02bae7dba27
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/627
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Denis Kondratenko <Denis_Kondratenko@xyratex.com>
MRP-57 xattr: a few fixes for the XATTR cache

This patch separates ACL and XATTR caches, so that
when updating an ACL only LOOKUP lock is needed and
when updating another XATTR only XATTR lock is needed.

This patch also reverts XATTR cache support for setxattr
because a client performing REINT under even PR lock
can deadlock if an active server operation (like unlink)
attempts to cancel all locks, and setxattr has to wait
for it (MDC max-in-flight is 1).

In some cases, MDS updates extended attributes
on its own rather than on a client request.
MDS_INODELOCK_XATTR should be taken for this purpose.

This patch also sets up HABEO_REFERO flag for the
getxattr intent alike getxattr REINT operation.
Without it, Lustre can crash on "non-existent object"
assertion.

This patch disables the r/o cache if the data is
unreasonably large (larger than maximum single EA
size).

Change-Id: Iab35dced22dbeead11ce6a5756e4b1cf1c330fd9
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/605
Tested-by: Jenkins
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Artem Blagodarenko <Artem_Blagodarenko@xyratex.com>
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Reviewed-by: Denis Kondratenko <Denis_Kondratenko@xyratex.com>
MRP-1286 tests: fix recovery-small 107, 112a tests order

Patch fixes the wrong tests order introduced by MRP-459

Signed-off-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Change-Id: I0bd9c7e8534fdb951bdd7a2e6ccf117e2a41d506
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/630
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Reviewed-by: Denis Kondratenko <Denis_Kondratenko@xyratex.com>
Tested-by: Jenkins