Whamcloud - gitweb
LU-793 ptlrpc: fix ptlrpc_request_change_export() 82/8582/2
authorMikhail Pershin <mike.pershin@intel.com>
Mon, 16 Dec 2013 06:57:39 +0000 (10:57 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 28 Dec 2013 02:15:11 +0000 (02:15 +0000)
commit9db3b77445d8b96f1f4a20ab03a6b8df3aec01e4
tree9a454002cdfb585fd6869611b4732ed2e7790cce
parent0be9fe65fe46a6f601d39c514f15b7aca3deba3b
LU-793 ptlrpc: fix ptlrpc_request_change_export()

The ptlrpc_request_change_export() is incompatible with recent
changes related to LU-793. It moves requests having rq_exp_list
to the new export exp_hp_req list assuming only hp requests have
rq_exp_list used, but now all requests use it. That may cause
normal requests to be moved to the hp queue.

Patch checks rq_ops instead and move request into proper list.
Second change fixes CFS_FAIL_TIMEOUT define, it uses sec * 1000
but 'sec' can be expression so it must be (sec) * 1000

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I2c385a824453a7cfaeede80180b3a83f72fc0f5b
Reviewed-on: http://review.whamcloud.com/8582
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
libcfs/include/libcfs/libcfs_fail.h
lustre/ptlrpc/service.c
lustre/target/tgt_handler.c
lustre/tests/recovery-small.sh