Whamcloud - gitweb
LU-8165 target: detect race by checking last_rcvd slot index 28/20328/2
authorBruno Faccini <bruno.faccini@intel.com>
Thu, 19 May 2016 15:04:39 +0000 (17:04 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Sep 2016 03:23:45 +0000 (03:23 +0000)
commitd9869f25f25583da5dadd21c6f99d8204a041321
treeef8b6f2e352f99d95055b7d1c310aa7175cab911
parent0cf638409812ce2533043908073b68698fb46c84
LU-8165 target: detect race by checking last_rcvd slot index

A race can occur on Server during Client connection and
concurent eviction, when Client's last_rcvd slot index has still
not been assigned (-1).
This patch adds a check to address such condition.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ifead82719a0dc9411f1b79d6c8c59eb9ef339fa5
Reviewed-on: http://review.whamcloud.com/20328
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Grégoire Pichon <gregoire.pichon@bull.net>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/target/tgt_lastrcvd.c