])
#
+# Allow the user to set the MDS thread upper limit
+#
+AC_DEFUN([LC_MDS_MAX_THREADS],
+[
+ AC_ARG_WITH([mds_max_threads],
+ AC_HELP_STRING([--with-mds-max-threads=size],
+ [define the maximum number of threads available on the MDS: (default=512)]),
+ [
+ MDS_THREAD_COUNT=$with_mds_max_threads
+ AC_DEFINE_UNQUOTED(MDT_MAX_THREADS, $MDS_THREAD_COUNT, [maximum number of mdt threads])
+ ])
+])
+
+#
# LC_CONFIG_BACKINGFS
#
# setup, check the backing filesystem
CFLAGS="$CFLAGS -Werror"
fi
+# maximum MDS thread count
+LC_MDS_MAX_THREADS
+
# include/liblustre.h
AC_CHECK_HEADERS([sys/user.h sys/vfs.h stdint.h blkid/blkid.h])
#define LDLM_MAXREQSIZE (5 * 1024)
#define LDLM_MAXREPSIZE (1024)
+/** Absolute limits */
#define MDT_MIN_THREADS 2UL
+#ifndef MDT_MAX_THREADS
#define MDT_MAX_THREADS 512UL
-
-/** Absolute limits */
-#define MDS_THREADS_MIN 2
-#define MDS_THREADS_MAX 512
-#define MDS_THREADS_MIN_READPAGE 2
+#endif
#define MDS_NBUFS (64 * cfs_num_online_cpus())
#define MDS_BUFSIZE (8 * 1024)
/**