Whamcloud - gitweb
LU-4429 llite: fix open lock matching in ll_md_blocking_ast() 18/8718/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 3 Jan 2014 23:31:53 +0000 (17:31 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 11 Jan 2014 03:53:24 +0000 (03:53 +0000)
commit2b23ad0d183141dc25377f2d37de6e6e36ba1169
tree3b7a20460cdd1cbb926c18e7824f9c46924ab61b
parent6b557f04e55b14e11b7fce310094e71331c8b204
LU-4429 llite: fix open lock matching in ll_md_blocking_ast()

In ll_md_blocking_ast() match open locks before all others, ensuring
that MDS_INODELOCK_OPEN is not cleared from bits by another open lock
with a different mode. Change the int flags parameter of
ll_md_real_close() to fmode_t fmode. Clean up verious style issues in
both functions.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I790cbbdbab75b25016c938b5f6340b20e09fc82e
Reviewed-on: http://review.whamcloud.com/8718
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/namei.c