Whamcloud - gitweb
LU-793 ptlrpc: allow client to reconnect with RPC in progress 60/4960/15
authorMikhail Pershin <mike.pershin@intel.com>
Mon, 11 Nov 2013 17:42:43 +0000 (21:42 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 2 Dec 2013 12:05:52 +0000 (12:05 +0000)
commitda6a28fc59a70226dd89bac95880f7791f1db075
tree62a88eaa1b3f0d855afe0bd4244e98cddc16e2d9
parentca843b37b63752e350505c7ca076d5014a7da25b
LU-793 ptlrpc: allow client to reconnect with RPC in progress

Since not letting clients with pending RPCs to reconnect caused a lot
of problems, this patch allows such a reconnection and would only
refuse to process requests with the same xids that are already being
processed.

Bulk requests are aborted upon reconnection by comparing connection
count of request and export.

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: Ic4b23a71fd288df02d1040d98867373ae06b60f6
Reviewed-on: http://review.whamcloud.com/4960
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Alexander Boyko <alexander_boyko@xyratex.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_export.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c
lustre/ptlrpc/service.c
lustre/target/tgt_handler.c
lustre/tests/recovery-small.sh
lustre/tests/test-framework.sh