diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-02-03 14:00:26 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-11 14:48:48 -0500 |
commit | f5a2041bd96c9f05ff10172b9c814c14f247084e (patch) | |
tree | 3c9c47169fa5ad2ec52d278f10d9d2de2237accf /fs/ceph/super.c | |
parent | b056c8769d1da6a6a80ce780a4b8957b70434a41 (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.c')
-rw-r--r-- | fs/ceph/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 3a2548951fe6..39aaf29a04a0 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -293,6 +293,7 @@ enum { | |||
293 | Opt_rsize, | 293 | Opt_rsize, |
294 | Opt_osdtimeout, | 294 | Opt_osdtimeout, |
295 | Opt_mount_timeout, | 295 | Opt_mount_timeout, |
296 | Opt_osd_idle_ttl, | ||
296 | Opt_caps_wanted_delay_min, | 297 | Opt_caps_wanted_delay_min, |
297 | Opt_caps_wanted_delay_max, | 298 | Opt_caps_wanted_delay_max, |
298 | Opt_readdir_max_entries, | 299 | Opt_readdir_max_entries, |
@@ -322,6 +323,7 @@ static match_table_t arg_tokens = { | |||
322 | {Opt_rsize, "rsize=%d"}, | 323 | {Opt_rsize, "rsize=%d"}, |
323 | {Opt_osdtimeout, "osdtimeout=%d"}, | 324 | {Opt_osdtimeout, "osdtimeout=%d"}, |
324 | {Opt_mount_timeout, "mount_timeout=%d"}, | 325 | {Opt_mount_timeout, "mount_timeout=%d"}, |
326 | {Opt_osd_idle_ttl, "osd_idle_ttl=%d"}, | ||
325 | {Opt_caps_wanted_delay_min, "caps_wanted_delay_min=%d"}, | 327 | {Opt_caps_wanted_delay_min, "caps_wanted_delay_min=%d"}, |
326 | {Opt_caps_wanted_delay_max, "caps_wanted_delay_max=%d"}, | 328 | {Opt_caps_wanted_delay_max, "caps_wanted_delay_max=%d"}, |
327 | {Opt_readdir_max_entries, "readdir_max_entries=%d"}, | 329 | {Opt_readdir_max_entries, "readdir_max_entries=%d"}, |
@@ -367,6 +369,7 @@ static struct ceph_mount_args *parse_mount_args(int flags, char *options, | |||
367 | args->flags = CEPH_OPT_DEFAULT; | 369 | args->flags = CEPH_OPT_DEFAULT; |
368 | args->osd_timeout = 5; /* seconds */ | 370 | args->osd_timeout = 5; /* seconds */ |
369 | args->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; /* seconds */ | 371 | args->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; /* seconds */ |
372 | args->osd_idle_ttl = CEPH_OSD_IDLE_TTL_DEFAULT; /* seconds */ | ||
370 | args->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT; | 373 | args->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT; |
371 | args->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT; | 374 | args->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT; |
372 | args->rsize = CEPH_MOUNT_RSIZE_DEFAULT; | 375 | args->rsize = CEPH_MOUNT_RSIZE_DEFAULT; |