Whamcloud - gitweb
LU-6356 tgt: handle sec context requests properly 41/14041/5
authorSebastien Buisson <sebastien.buisson@bull.net>
Wed, 11 Mar 2015 09:38:40 +0000 (10:38 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 16 Jun 2015 08:46:53 +0000 (08:46 +0000)
commit6a0d6dd10e3ddcc5eafef07df4330a613b539c5f
treed3e77b9e4b90d5645c6d911837c25c7626167ea9
parent0136a91b6d629556ef091f5ca210c13772207df9
LU-6356 tgt: handle sec context requests properly

When dealing with security context initialization requests,
no export is associated with the request yet, because these
requests are sent before *_CONNECT requests.
So the normal *_common_slice handlers will not be called,
given there is no reference to the target.

So add a special case for handling of SEC_CTX_INIT, SEC_CTX_INIT_CONT
and SEC_CTX_FINI requests in tgt_handle_request0() and
tgt_request_handle(), in order to directly send the reply.

Also remove tgt_sec_ctx_handlers because they become useless.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: Ic0947082c7acc188ebbf2e9cb9ff57e999b5ed3e
Reviewed-on: http://review.whamcloud.com/14041
Tested-by: Jenkins
Reviewed-by: Andrew Perepechko <andrew.perepechko@seagate.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lu_target.h
lustre/mgs/mgs_handler.c
lustre/target/tgt_handler.c