* in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see [sun.com URL with a
- * copy of GPLv2].
+ * version 2 along with this program; If not, see
+ * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
#include <lustre_net.h>
#include <libcfs/list.h>
-#define LLOG_CLIENT_ENTRY(ctxt, imp) do { \
- mutex_down(&ctxt->loc_sem); \
+#define LLOG_CLIENT_ENTRY(ctxt, imp) do { \
+ cfs_mutex_down(&ctxt->loc_sem); \
if (ctxt->loc_imp) { \
imp = class_import_get(ctxt->loc_imp); \
} else { \
"but I'll try again next time. Not fatal.\n", \
ctxt->loc_idx); \
imp = NULL; \
- mutex_up(&ctxt->loc_sem); \
+ cfs_mutex_up(&ctxt->loc_sem); \
return (-EINVAL); \
} \
- mutex_up(&ctxt->loc_sem); \
+ cfs_mutex_up(&ctxt->loc_sem); \
} while(0)
-#define LLOG_CLIENT_EXIT(ctxt, imp) do { \
- mutex_down(&ctxt->loc_sem); \
- if (ctxt->loc_imp != imp) \
- CWARN("loc_imp has changed from %p to %p", \
- ctxt->loc_imp, imp); \
- class_import_put(imp); \
- mutex_up(&ctxt->loc_sem); \
+#define LLOG_CLIENT_EXIT(ctxt, imp) do { \
+ cfs_mutex_down(&ctxt->loc_sem); \
+ if (ctxt->loc_imp != imp) \
+ CWARN("loc_imp has changed from %p to %p\n", \
+ ctxt->loc_imp, imp); \
+ class_import_put(imp); \
+ cfs_mutex_up(&ctxt->loc_sem); \
} while(0)
/* This is a callback from the llog_* functions.
LLOG_ORIGIN_HANDLE_CREATE);
if (rc) {
ptlrpc_request_free(req);
+ req = NULL;
GOTO(err_free, rc);
}
ptlrpc_request_set_replen(req);