Whamcloud - gitweb
b=23289 cleanup assertion on atomic
[fs/lustre-release.git] / lustre / ptlrpc / sec_null.c
index dd4332b..4fc2242 100644 (file)
@@ -340,7 +340,7 @@ int null_alloc_rs(struct ptlrpc_request *req, int msgsize)
 static
 void null_free_rs(struct ptlrpc_reply_state *rs)
 {
-        LASSERT(cfs_atomic_read(&rs->rs_svc_ctx->sc_refcount) > 1);
+        LASSERT_ATOMIC_GT(&rs->rs_svc_ctx->sc_refcount, 1);
         cfs_atomic_dec(&rs->rs_svc_ctx->sc_refcount);
 
         if (!rs->rs_prealloc)