Whamcloud - gitweb
* Landed portals:b_port_step as follows...
authoreeb <eeb>
Fri, 4 Feb 2005 18:49:21 +0000 (18:49 +0000)
committereeb <eeb>
Fri, 4 Feb 2005 18:49:21 +0000 (18:49 +0000)
  - removed CFS_DECL_SPIN*
    just use 'spinlock_t' and initialise with spin_lock_init()

  - removed CFS_DECL_MUTEX*
    just use 'struct semaphore' and initialise with init_mutex()

  - removed CFS_DECL_RWSEM*
    just use 'struct rw_semaphore' and initialise with init_rwsem()

  - renamed cfs_sleep_chan -> cfs_waitq
            cfs_sleep_link -> cfs_waitlink

          - fixed race in linux version of arch-independent socknal
       (the ENOMEM/EAGAIN decision).

  - Didn't fix problems in Darwin version of arch-independent socknal
      (resetting socket callbacks, eager ack hack, ENOMEM/EAGAIN decision)

  - removed libcfs types from non-socknal header files (only some types
    in the header files had been changed; the .c files hadn't been
    updated at all).

  - Updated lustre b1_4 to match

41 files changed:
lustre/include/liblustre.h
lustre/include/linux/lprocfs_status.h
lustre/include/linux/lustre_compat25.h
lustre/include/linux/lustre_idl.h
lustre/include/linux/lustre_lib.h
lustre/include/linux/lustre_mds.h
lustre/include/linux/lustre_net.h
lustre/include/linux/lvfs.h
lustre/include/linux/obd_class.h
lustre/include/linux/obd_support.h
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/lvfs/fsfilt.c
lustre/lvfs/fsfilt_ext3.c
lustre/lvfs/fsfilt_reiserfs.c
lustre/lvfs/lvfs_linux.c
lustre/mds/mds_fs.c
lustre/mds/mds_log.c
lustre/mds/mds_unlink_open.c
lustre/obdclass/class_obd.c
lustre/obdclass/llog.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_ioctl.c
lustre/obdclass/llog_lvfs.c
lustre/obdclass/llog_obd.c
lustre/obdclass/obd_config.c
lustre/obdfilter/filter.c
lustre/obdfilter/filter_log.c
lustre/obdfilter/filter_lvb.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/ptlrpc/llog_client.c
lustre/ptlrpc/llog_net.c
lustre/ptlrpc/llog_server.c
lustre/ptlrpc/ptlrpcd.c
lustre/ptlrpc/recov_thread.c
lustre/ptlrpc/recover.c
lustre/ptlrpc/service.c
lustre/tests/mkdirdeep.c
lustre/utils/obd.c

index c9e1274..8022711 100644 (file)
@@ -45,9 +45,9 @@
 #include <sys/stat.h>
 #include <sys/vfs.h>
 
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <portals/p30.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 
 /* definitions for liblustre */
 
@@ -360,28 +360,7 @@ static inline int kmem_cache_destroy(kmem_cache_t *a)
 #define PAGE_CACHE_SHIFT PAGE_SHIFT
 #define PAGE_CACHE_MASK  PAGE_MASK
 
-/* XXX
- * for this moment, liblusre will not rely OST for non-page-aligned write
- */
-#define LIBLUSTRE_HANDLE_UNALIGNED_PAGE
-
-struct page {
-        void   *addr;
-        unsigned long index;
-        struct list_head list;
-        unsigned long private;
-
-        /* internally used by liblustre file i/o */
-        int     _offset;
-        int     _count;
-#ifdef LIBLUSTRE_HANDLE_UNALIGNED_PAGE
-        int     _managed;
-#endif
-};
-
-/* 2.4 defines */
-#define PAGE_LIST_ENTRY list
-#define PAGE_LIST(page) ((page)->list)
+/* struct page decl moved out from here into portals/include/libcfs/user-prim.h */
 
 #define kmap(page) (page)->addr
 #define kunmap(a) do {} while (0)
index f552d61..1055900 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/proc_fs.h>
 #include <linux/version.h>
 #include <linux/smp.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 
 # if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
 #  include <linux/statfs.h>
index d6f039f..8e78e2e 100644 (file)
@@ -29,7 +29,7 @@
 #error sorry, lustre requires at least 2.5.69
 #endif
 
-#include <linux/portals_compat25.h>
+#include <libcfs/linux/portals_compat25.h>
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
 
index 42b510b..1101778 100644 (file)
@@ -44,6 +44,8 @@
 # include <asm/types.h>
 # include <stdint.h>
 #endif
+# include <libcfs/list.h>
+# include <string.h>
 #endif
 
 /* Defn's shared with user-space. */
index 8af9863..6fdad0e 100644 (file)
@@ -35,8 +35,8 @@
 # include <linux/signal.h>
 # include <linux/types.h>
 #endif
-#include <linux/portals_lib.h>
-#include <linux/kp30.h> /* XXX just for LASSERT! */
+#include <libcfs/portals_lib.h>
+#include <libcfs/kp30.h> /* XXX just for LASSERT! */
 #include <linux/lustre_idl.h>
 #include <linux/lustre_cfg.h>
 
@@ -126,8 +126,6 @@ void l_unlock(struct lustre_lock *);
 int l_has_lock(struct lustre_lock *);
 
 
-#include <linux/portals_lib.h>
-
 /*
  *   OBD IOCTLS
  */
@@ -470,7 +468,7 @@ static inline void obd_ioctl_freedata(char *buf, int len)
 #define ECHO_IOC_CANCEL                _IOWR('f', 203, long)
 
 /* XXX _IOWR('f', 250, long) has been defined in
- * portals/include/linux/kp30.h for debug, don't use it
+ * portals/include/libcfs/kp30.h for debug, don't use it
  */
 
 /* Until such time as we get_info the per-stripe maximum from the OST,
index 82b9f23..0ebde73 100644 (file)
@@ -15,7 +15,7 @@
 # include <linux/dcache.h>
 #endif
 #include <linux/lustre_handles.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_idl.h>
 #include <linux/lustre_lib.h>
 #include <linux/lustre_dlm.h>
index f5580e4..21ddb59 100644 (file)
@@ -32,7 +32,7 @@
 #endif
 #endif
 
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 // #include <linux/obd.h>
 #include <portals/p30.h>
 #include <linux/lustre_idl.h>
index 5065397..e645441 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef __LVFS_H__
 #define __LVFS_H__
 
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 
 #define LL_FID_NAMELEN (16 + 1 + 8 + 1)
 
index b499e2d..4e7a8e5 100644 (file)
@@ -25,7 +25,7 @@
 
 #ifndef __KERNEL__
 #include <sys/types.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #else
 #include <asm/segment.h>
 #include <asm/uaccess.h>
index f40f876..fb35c49 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/slab.h>
 #include <linux/highmem.h>
 #endif
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_compat25.h>
 
 /* global variables */
index c1cd3bf..7035f04 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/obd_support.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_lib.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #else
 #include <liblustre.h>
 #endif
index 75efd2b..2168f1f 100644 (file)
@@ -29,7 +29,7 @@
 # include <linux/lustre_dlm.h>
 #else
 # include <liblustre.h>
-# include <linux/kp30.h>
+# include <libcfs/kp30.h>
 #endif
 
 #include <linux/obd_class.h>
index 0e55042..0647f98 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <linux/lustre_dlm.h>
 #include <linux/obd_class.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include "ldlm_internal.h"
 
 extern kmem_cache_t *ldlm_resource_slab;
index a9ddf8b..cc14ab6 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/module.h>
 #include <linux/kmod.h>
 #include <linux/slab.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_fsfilt.h>
 
 LIST_HEAD(fsfilt_types);
index 19fa6e4..8c5bc89 100644 (file)
@@ -42,7 +42,7 @@
 #include <ext3/xattr.h>
 #endif
 
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_fsfilt.h>
 #include <linux/obd.h>
 #include <linux/obd_class.h>
index 861b663..b9f987a 100644 (file)
@@ -41,7 +41,7 @@
 #include <linux/init.h>
 #include <asm/statfs.h>
 #endif
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_fsfilt.h>
 #include <linux/obd.h>
 #include <linux/obd_class.h>
index 6742dd6..b463b88 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/pagemap.h>
 #include <linux/quotaops.h>
 #include <linux/version.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_fsfilt.h>
 #include <linux/obd.h>
 #include <linux/obd_class.h>
index 4728176..f6212a3 100644 (file)
@@ -39,7 +39,7 @@
 #include <linux/obd_support.h>
 #include <linux/lustre_lib.h>
 #include <linux/lustre_fsfilt.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 #include "mds_internal.h"
 
index b8ce8b5..b7ebc31 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/module.h>
 #include <linux/version.h>
 
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_fsfilt.h>
 #include <linux/lustre_commit_confd.h>
index 92b4a45..f6bc83c 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/module.h>
 #include <linux/version.h>
 
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_fsfilt.h>
 #include <linux/lustre_commit_confd.h>
index 4106977..7491b28 100644 (file)
@@ -67,7 +67,7 @@
 #include <linux/lustre_build_version.h>
 #include <linux/lustre_version.h>
 #endif
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include "llog_internal.h"
 
 #ifndef __KERNEL__
index 0d31a03..6d76716 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 /* Allocate a new log or catalog handle */
 struct llog_handle *llog_alloc_handle(void)
index c4df3f8..1ebbc30 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 /* Create a new log handle and add it to the open list.
  * This log handle will be closed when all of the records in it are removed.
index 40ed1e4..f364a21 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/fs.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include "llog_internal.h"
 
 static int str2logid(struct llog_logid *logid, char *str, int len)
index f032552..40d0753 100644 (file)
@@ -42,7 +42,7 @@
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
 #include <linux/obd_ost.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/lvfs.h>
 #include <linux/lustre_fsfilt.h>
 #include "llog_internal.h"
index e9a9856..cdbcce8 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include "llog_internal.h"
 
 /* helper functions for calling the llog obd methods */
index 4035346..4bb616d 100644 (file)
@@ -37,7 +37,7 @@
 #endif
 #include <linux/lustre_log.h>
 #include <linux/lprocfs_status.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 
 /* Create a new device and set the type, name and uuid.  If
index d1ba241..fa487a8 100644 (file)
@@ -53,7 +53,7 @@
 #include <linux/lprocfs_status.h>
 #include <linux/lustre_log.h>
 #include <linux/lustre_commit_confd.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 #include "filter_internal.h"
 
index d2dd8b0..97675bb 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/module.h>
 #include <linux/version.h>
 
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_fsfilt.h>
 #include <linux/lustre_commit_confd.h>
index 41d42f2..c8a9d9b 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/module.h>
 #include <linux/version.h>
 
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_dlm.h>
 
index 1741f0d..f2493b4 100644 (file)
@@ -49,7 +49,7 @@
 #endif
 
 # include <linux/lustre_dlm.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_net.h>
 #include <lustre/lustre_user.h>
 #include <linux/obd_ost.h>
index 924c03c..ae67814 100644 (file)
@@ -44,7 +44,7 @@
 #include <linux/init.h>
 #include <linux/lprocfs_status.h>
 #include <linux/lustre_commit_confd.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include "ost_internal.h"
 
 void oti_init(struct obd_trans_info *oti, struct ptlrpc_request *req)
index 81089ac..5b8e33f 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
 #include <linux/lustre_net.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 /* This is a callback from the llog_* functions.
  * Assumes caller has already pushed us into the kernel context. */
index 0eb8d41..fa2fc8e 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/lvfs.h>
 
 #ifdef __KERNEL__
index 321d8e2..a038d8a 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/obd_class.h>
 #include <linux/lustre_log.h>
 #include <linux/lustre_net.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/lustre_fsfilt.h>
 
 #ifdef __KERNEL__
index d40dfb4..fc048fb 100644 (file)
@@ -42,7 +42,7 @@
 # include <ctype.h>
 #endif
 
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/lustre_net.h>
 
 #include <linux/lustre_ha.h>
index 6239e5a..11d37b4 100644 (file)
 #ifdef __KERNEL__
 #include <linux/fs.h>
 #else
-# include <portals/list.h>
+# include <libcfs/list.h>
 # include <liblustre.h>
 #endif
 
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_commit_confd.h>
 #include <linux/obd_support.h>
 #include <linux/obd_class.h>
 #include <linux/lustre_net.h>
 #include <portals/types.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
 #include <linux/lustre_log.h>
 #include "ptlrpc_internal.h"
 
index 6dc0e55..68d7b02 100644 (file)
@@ -40,7 +40,7 @@
 #include <linux/obd_ost.h>
 #include <linux/obd_class.h>
 #include <linux/obd_lov.h> /* for IOC_LOV_SET_OSC_ACTIVE */
-#include <portals/list.h>
+#include <libcfs/list.h>
 
 #include "ptlrpc_internal.h"
 
index 4104d7f..5cd30eb 100644 (file)
@@ -23,7 +23,7 @@
 #define DEBUG_SUBSYSTEM S_RPC
 #ifndef __KERNEL__
 #include <liblustre.h>
-#include <linux/kp30.h>
+#include <libcfs/kp30.h>
 #endif
 #include <linux/obd_support.h>
 #include <linux/obd_class.h>
index 1326c1e..8641d1d 100644 (file)
@@ -16,7 +16,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <linux/limits.h>
-#include <portals/lltrace.h>
+#include <libcfs/lltrace.h>
 
 static int opt_verbose = 0;
 static int opt_trace = 0;
index b5e75d1..c14e4a5 100644 (file)
 
 #include <asm/page.h>           /* needed for PAGE_SIZE - rread */
 
-#define __KERNEL__
-#include <linux/list.h>
-#undef __KERNEL__
-
 #include <linux/obd_class.h>
 #include <portals/ptlctl.h>
 #include "parser.h"