aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-02-03 14:00:26 -0500
committerSage Weil <sage@newdream.net>2010-02-11 14:48:48 -0500
commitf5a2041bd96c9f05ff10172b9c814c14f247084e (patch)
tree3c9c47169fa5ad2ec52d278f10d9d2de2237accf /fs/ceph/super.h
parentb056c8769d1da6a6a80ce780a4b8957b70434a41 (diff)
ceph: put unused osd connections on lru
Instead of removing osd connection immediately when the requests list is empty, put the osd connection on an lru. Only if that osd has not been used for more than a specified time, will it be removed. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 770f7b507fce..3930fb685f0b 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -53,6 +53,7 @@ struct ceph_mount_args {
53 struct ceph_entity_addr *mon_addr; 53 struct ceph_entity_addr *mon_addr;
54 int flags; 54 int flags;
55 int mount_timeout; 55 int mount_timeout;
56 int osd_idle_ttl;
56 int caps_wanted_delay_min, caps_wanted_delay_max; 57 int caps_wanted_delay_min, caps_wanted_delay_max;
57 struct ceph_fsid fsid; 58 struct ceph_fsid fsid;
58 struct ceph_entity_addr my_addr; 59 struct ceph_entity_addr my_addr;
@@ -71,6 +72,7 @@ struct ceph_mount_args {
71 * defaults 72 * defaults
72 */ 73 */
73#define CEPH_MOUNT_TIMEOUT_DEFAULT 60 74#define CEPH_MOUNT_TIMEOUT_DEFAULT 60
75#define CEPH_OSD_IDLE_TTL_DEFAULT 60
74#define CEPH_MOUNT_RSIZE_DEFAULT (512*1024) /* readahead */ 76#define CEPH_MOUNT_RSIZE_DEFAULT (512*1024) /* readahead */
75 77
76#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024) 78#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024)