From: yury Date: Tue, 27 Jan 2009 14:25:03 +0000 (+0000) Subject: - added comment about LDLM_FL_* flags at Adilger's request; X-Git-Tag: v1_8_0_110~297 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e9530085e0d80072347ac2496ac80f0fd3eeb975;p=fs%2Flustre-release.git - added comment about LDLM_FL_* flags at Adilger's request; - ordered LDLM_FL_* flags correctly. --- diff --git a/lustre/include/lustre_dlm.h b/lustre/include/lustre_dlm.h index ce3d569..a20ee95 100644 --- a/lustre/include/lustre_dlm.h +++ b/lustre/include/lustre_dlm.h @@ -152,11 +152,6 @@ typedef enum { /* Flags flags inherited from parent lock when doing intents. */ #define LDLM_INHERIT_FLAGS (LDLM_FL_CANCEL_ON_BLOCK) -/* These are flags that are mapped into the flags and ASTs of blocking locks */ -#define LDLM_AST_DISCARD_DATA 0x80000000 /* Add FL_DISCARD to blocking ASTs */ -/* Flags sent in AST lock_flags to be mapped into the receiving lock. */ -#define LDLM_AST_FLAGS (LDLM_FL_DISCARD_DATA) - /* completion ast to be executed */ #define LDLM_FL_CP_REQD 0x1000000 @@ -183,7 +178,21 @@ typedef enum { /* measure lock contention and return -EUSERS if locking contention is high */ #define LDLM_FL_DENY_ON_CONTENTION 0x40000000 -/* 0x80000000 is occupied by LDLM_AST_DISCARD_DATA */ +/* These are flags that are mapped into the flags and ASTs of blocking locks */ +#define LDLM_AST_DISCARD_DATA 0x80000000 /* Add FL_DISCARD to blocking ASTs */ + +/* Flags sent in AST lock_flags to be mapped into the receiving lock. */ +#define LDLM_AST_FLAGS (LDLM_FL_DISCARD_DATA) + +/* + * -------------------------------------------------------------------------- + * NOTE! Starting from this point, that is, LDLM_FL_* flags with values above + * 0x80000000 will not be sent over the wire. + * -------------------------------------------------------------------------- + */ + +/* Used for marking lock as an target for -EINTR while cp_ast sleep + * emulation + race with upcoming bl_ast. */ #define LDLM_FL_FAIL_LOC 0x100000000ULL /* The blocking callback is overloaded to perform two functions. These flags