Whamcloud - gitweb
LU-9930 llite: only clear lli_sai if the setter 45/29145/3
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 30 Aug 2017 09:37:03 +0000 (11:37 +0200)
committerJohn L. Hammond <john.hammond@intel.com>
Wed, 11 Oct 2017 19:51:28 +0000 (19:51 +0000)
commit06d290bdf0c030fe305cd5db05326a02174373ab
tree3a0d1cee8480d7803a3548e3cb75901de1523c09
parent783b470f800c85e9ca5c9453fdb3c13062f67e41
LU-9930 llite: only clear lli_sai if the setter

Previous to this patch, start_statahead_thread() was
unconditionnally clearing lli->lli_sai upon error, leading
to crash upon racy scenario where it has just been set in/by
another thread context.
Now, only clear lli_sai if current thread has set it.

Lustre-change: https://review.whamcloud.com/28794
Lustre-commit: f4a0ebe28e88cbdd79061fad275cb9494fdba225

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I555febfad3494c9dd90eeb72d6dd9157428179ea
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/29145
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/llite/statahead.c