Whamcloud - gitweb
LU-322 tests: Pool test fixes for large number of OSTs
[fs/lustre-release.git] / libcfs / libcfs / user-lock.c
index 2b1c11e..81d5a11 100644 (file)
@@ -26,7 +26,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  */
 /*
@@ -132,6 +132,13 @@ void __down(cfs_semaphore_t *s)
         (void)s;
 }
 
+int __down_interruptible(cfs_semaphore_t *s)
+{
+        LASSERT(s != NULL);
+        (void)s;
+        return 0;
+}
+
 void __up(cfs_semaphore_t *s)
 {
         LASSERT(s != NULL);
@@ -255,7 +262,7 @@ void cfs_fini_rwsem(cfs_rw_semaphore_t *s)
         (void)s;
 }
 
-#ifdef HAVE_PTHREAD
+#ifdef HAVE_LIBPTHREAD
 
 /*
  * Multi-threaded user space completion
@@ -356,7 +363,7 @@ void cfs_mt_atomic_sub(int b, cfs_mt_atomic_t *a)
         pthread_mutex_unlock(&atomic_guard_lock);
 }
 
-#endif /* HAVE_PTHREAD */
+#endif /* HAVE_LIBPTHREAD */
 
 
 /* !__KERNEL__ */