Whamcloud - gitweb
LU-4429 llite: fix open lock matching in ll_md_blocking_ast() 60/9260/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>
Fri, 14 Feb 2014 17:34:46 +0000 (17:34 +0000)
commite865550a4f6aa18340c8437e733080d0a8fcab09
tree8f69e8f9a1e77f596b8fbfcb9aea7eb1b1bfa6af
parentc457dfbe4dca8a65e7d5bfc41e9831aa8937b3a1
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.

Lustre-commit: 2b23ad0d183141dc25377f2d37de6e6e36ba1169
Lustre-change: http://review.whamcloud.com/8718

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Bob Glossman <bob.glossman@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>
Change-Id: Ic44ac8ac8c07b71d4c929d7d359bee881c6b05b0
Reviewed-on: http://review.whamcloud.com/9260
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/namei.c