Details
-
Bug
-
Resolution: Fixed
-
Trivial
-
Lustre 2.11.0
-
3
-
9223372036854775807
Description
In ns_is_{client,server}(), (ns->ns_client == LDLM_NAMESPACE_CLIENT || ns->ns_client == LDLM_NAMESPACE_SERVER) implies that (!(ns->ns_client & ~(LDLM_NAMESPACE_CLIENT |
LDLM_NAMESPACE_SERVER))) is also true, so the latter LASSERT() could be removed from ns_is_{client,server}().
This might be an inconsequential issue. I have not checked if gcc optimizes-out one of the LASSERT()s.
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35193/
{client,server}Subject:
LU-11755ldlm: remove LASSERT() in ns_is_()
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 19aefacda4623fb34b09f499ecf087fcb7b968f5