Whamcloud - gitweb
LU-2744 build: fix race issues thanks to oap_lock 72/6572/6
authorSebastien Buisson <sebastien.buisson@bull.net>
Thu, 6 Jun 2013 12:39:13 +0000 (14:39 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 5 Sep 2013 20:37:58 +0000 (20:37 +0000)
commit0b2f943a317083a117d6f5f4a22e1d8233a7da77
tree718a778531e7462a45382180dd2e774020be754d
parent49d895fca7758498366328f2f6428b0edca75f77
LU-2744 build: fix race issues thanks to oap_lock

Fix 'data race condition' defects found by Coverity version
6.5.0:
Data race condition (MISSING_LOCK)
Accessing variable without holding lock. Elsewhere,
this variable is accessed with lock held.

This patch is dedicated to code fragments involving oap_lock.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: Ibfd5fe6338c624a1ab98b83ec621bcd88d736491
Reviewed-on: http://review.whamcloud.com/6572
Tested-by: Hudson
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osc/osc_cache.c
lustre/osc/osc_io.c