Whamcloud - gitweb
LU-6356 ptlrpc: do not switch out-of-date context 08/15708/3
authorSebastien Buisson <sebastien.buisson@bull.net>
Thu, 23 Jul 2015 11:37:37 +0000 (13:37 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Sep 2015 03:00:45 +0000 (03:00 +0000)
commit09e5f8ad23a880cb12fdf521b46a30e1f0a11d03
tree1ca7ba82e4743c755e1529ba52fecae12b2f5fdf
parentf88b481fdf11332e4780bae54ff3443b8d43cf5a
LU-6356 ptlrpc: do not switch out-of-date context

When trying to replace a dead sec context with a new one, we must
ensure the new context is already up-to-date.
If it is not the case, just return from sptlrpc_req_replace_dead_ctx()
and come later when the new context has been updated.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: I3b0862f838b917b568e08d46a24581a39c9459c1
Reviewed-on: http://review.whamcloud.com/15708
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/sec.c