From: John L. Hammond Date: Sat, 1 Mar 2014 02:16:30 +0000 (-0500) Subject: staging/lustre/llite: fix open lock matching in ll_md_blocking_ast() X-Git-Tag: v3.15-rc1~139^2~771 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45b2a01074c54bdc00449ab8ad6f7af4a777b139;p=pandora-kernel.git staging/lustre/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 Reviewed-on: http://review.whamcloud.com/8718 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4429 Reviewed-by: Niu Yawei Reviewed-by: Jinshan Xiong Reviewed-by: Oleg Drokin Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed