Whamcloud - gitweb
LU-1617 build: skip generated files in .gitignore
[fs/lustre-release.git] / lnet / klnds / mxlnd / mxlnd.c
index 34faab7..7c0a8d1 100644 (file)
@@ -1,6 +1,4 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
  * GPL HEADER START
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -26,7 +24,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
  * Copyright (C) 2006 Myricom, Inc.
@@ -348,7 +346,7 @@ mxlnd_init_mx(lnet_ni_t *ni)
                            MXLND_MSG_MAGIC, MXLND_CONNECT_TIMEOUT/CFS_HZ*1000,
                            &kmxlnd_data.kmx_epa);
         if (mxret != MX_SUCCESS) {
-                CDEBUG(D_NETERROR, "unable to connect to myself (%s)\n", mx_strerror(mxret));
+                CNETERR("unable to connect to myself (%s)\n", mx_strerror(mxret));
                 goto failed_with_endpoint;
         }
 
@@ -397,9 +395,9 @@ mxlnd_thread_start(int (*fn)(void *arg), void *arg)
         cfs_atomic_inc(&kmxlnd_data.kmx_nthreads);
         cfs_init_completion(&kmxlnd_data.kmx_completions[i]);
 
-        pid = cfs_kernel_thread (fn, arg, 0);
+        pid = cfs_create_thread(fn, arg, 0);
         if (pid < 0) {
-                CERROR("cfs_kernel_thread() failed with %d\n", pid);
+                CERROR("cfs_create_thread() failed with %d\n", pid);
                 cfs_atomic_dec(&kmxlnd_data.kmx_nthreads);
         }
         return pid;