LU-2550 osc: set resend count properly

The resend count of new io request should be set properly
in osc_brw_redo_request().

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I31285df00513ad02befd84d9d37cfcbb48055bb0
Reviewed-on: http://review.whamcloud.com/4964
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-1484 lprocfs: refine LC_PROCFS_USERS check

In some RHEL patched 2.6.18 kernels, pde_users member is added in
another struct proc_dir_entry_aux instead of in struct proc_dir_entry
in later kernel version of 2.6.23.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Icee65893b2fbf4d0c3b3e957cb038be99aaf6eb8
Reviewed-on: http://review.whamcloud.com/4976
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
LU-1625 test: reduce test duration for nfs mode

There isn't much value to run long duration in nfs mode.
Cut down IOR test as well.
Based on original work by Minh Diep.

port of patch f518a40d96d3431f3d68de9eac99ea33498894c7
port of patch e69d9852bc095695ceecb219b84bd8a48d5aa10c

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \
testlist=parallel-scale-nfsv3,parallel-scale-nfsv4

Signed-off-by: Keith Mannthey <keith@whamcloud.com>
Change-Id: I308d2dcedcb86bbc86b3d2b875e91ceeb2b96f6e
Signed-off-by: Liu Ying <emoly.liu@intel.com>
Reviewed-on: http://review.whamcloud.com/4949
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Li Wei <wei.g.li@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
LU-1526 tests: new sanity-quota tests

This patch is ported from commit d6f2a9f to add new sanity-quota.sh
for the interoprability testing with new quota architecture,
meanwhile, the old sanity-quota.sh is reserved for the interoprability
with old server.

The patch also contains the fixups for LU-2174, LU-2283, LU-2284,
LU-2329 and LU-2526.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes clientarch=x86_64 serverarch=x86_64 testlist=conf-sanity,sanity-quota
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I5d6834e5b7c257f0a44f45710674b2a236039bf1
Reviewed-on: http://review.whamcloud.com/4915
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Hudson
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-958 tests: debug_mb set incorrectly for smp or vm

For cpus with number of cores or for some VMs, number of possible CPUs
in the system could be greater than number of cpu reported by getconf.
Added check for maximum debug buffer size.
Added check if that "possible" exists, if not - use old method.

The patch of LU-1249 is also invloved to auto correct improper debug
buffer size setting.

port of patch 2ccb34d882b01305794e7780b6dd691179ddae7e
port of patch 28817cbd133c626042f9b142600c03187ba4a7ce
Xyratex-bug-id: MRP-219 incorrect settings for debug_mb

Test-Parameters: clientarch=x86_64 serverarch=x86_64 testlist=mmp

Signed-off-by: Denis Kondratenko <Denis_Kondratenko@xyratex.com>
Signed-off-by: Bobi Jam <bobijam@gmail.com>
Signed-off-by: Liu Ying <emoly.liu@intel.com>
Change-Id: Ib1e39a26e4d4af8e599d6e5fcdb1fecff8a6f4fa
Reviewed-on: http://review.whamcloud.com/4962
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-1779 tests: fix run_one_logged() to log SKIP status

In the current test framework, only those tests which are in the
$ALWAYS_EXCEPT list are logged with SKIP status, other skipped
tests are all logged with PASS status.

This patch fixes the above issue by setting the SKIP status in
pass() and logging the status in run_one_logged().

Test-Parameters: clientarch=x86_64 serverarch=x86_64 testlist=mmp
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I766cf6d2bb984b6097b20d2c089925890b86f9b1
Reviewed-on: http://review.whamcloud.com/4955
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>