aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/libceph.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h
index 85ae9a889a3f..d73a569f9bf5 100644
--- a/include/linux/ceph/libceph.h
+++ b/include/linux/ceph/libceph.h
@@ -43,9 +43,9 @@ struct ceph_options {
43 int flags; 43 int flags;
44 struct ceph_fsid fsid; 44 struct ceph_fsid fsid;
45 struct ceph_entity_addr my_addr; 45 struct ceph_entity_addr my_addr;
46 int mount_timeout; 46 unsigned long mount_timeout; /* jiffies */
47 int osd_idle_ttl; 47 unsigned long osd_idle_ttl; /* jiffies */
48 int osd_keepalive_timeout; 48 unsigned long osd_keepalive_timeout; /* jiffies */
49 49
50 /* 50 /*
51 * any type that can't be simply compared or doesn't need need 51 * any type that can't be simply compared or doesn't need need
@@ -63,9 +63,9 @@ struct ceph_options {
63/* 63/*
64 * defaults 64 * defaults
65 */ 65 */
66#define CEPH_MOUNT_TIMEOUT_DEFAULT 60 66#define CEPH_MOUNT_TIMEOUT_DEFAULT msecs_to_jiffies(60 * 1000)
67#define CEPH_OSD_KEEPALIVE_DEFAULT 5 67#define CEPH_OSD_KEEPALIVE_DEFAULT msecs_to_jiffies(5 * 1000)
68#define CEPH_OSD_IDLE_TTL_DEFAULT 60 68#define CEPH_OSD_IDLE_TTL_DEFAULT msecs_to_jiffies(60 * 1000)
69 69
70#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024) 70#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024)
71#define CEPH_MSG_MAX_MIDDLE_LEN (16*1024*1024) 71#define CEPH_MSG_MAX_MIDDLE_LEN (16*1024*1024)
@@ -93,6 +93,11 @@ enum {
93 CEPH_MOUNT_SHUTDOWN, 93 CEPH_MOUNT_SHUTDOWN,
94}; 94};
95 95
96static inline unsigned long ceph_timeout_jiffies(unsigned long timeout)
97{
98 return timeout ?: MAX_SCHEDULE_TIMEOUT;
99}
100
96struct ceph_mds_client; 101struct ceph_mds_client;
97 102
98/* 103/*