Whamcloud - gitweb
LU-1789 protocol: add support for lightweight connection
authorJohann Lombardi <johann@whamcloud.com>
Mon, 10 Sep 2012 22:18:01 +0000 (00:18 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Sep 2012 04:01:32 +0000 (00:01 -0400)
commitfa32b478599bbdfe6d51e41d8715665632d011b3
treeb270892c67938bb71a3096bbfa00117a17eed0b1
parentfd04d29e80cf5f2bea989de29a574d04478cf1f3
LU-1789 protocol: add support for lightweight connection

A lightweight connection has the following uncommon properties:
- no entry is added to last_rcvd file, so no recovery is possible
- a lightweight connection can be set up while the target is in
  recovery, therefore it should be used use caution
- locks can still be acquired through this connection, although they
  won't be replayed.

We might also consider disabling pings in the future.

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I2b2d1a28d0fd4ca278806cab6103f96fbd88a07d
Reviewed-on: http://review.whamcloud.com/3925
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Hudson
Reviewed-by: wangdi <di.wang@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustre_idl.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/llite/llite_lib.c
lustre/mdt/mdt_recovery.c
lustre/obdclass/genops.c
lustre/ofd/ofd_trans.c
lustre/osd-ldiskfs/osd_handler.c
lustre/ptlrpc/import.c
lustre/ptlrpc/target.c
lustre/tests/recovery-small.sh