ceph: put unused osd connections on lru
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 3 Feb 2010 19:00:26 +0000 (11:00 -0800)
committerSage Weil <sage@newdream.net>
Thu, 11 Feb 2010 19:48:48 +0000 (11:48 -0800)
commitf5a2041bd96c9f05ff10172b9c814c14f247084e
tree3c9c47169fa5ad2ec52d278f10d9d2de2237accf
parentb056c8769d1da6a6a80ce780a4b8957b70434a41
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>
fs/ceph/osd_client.c
fs/ceph/osd_client.h
fs/ceph/super.c
fs/ceph/super.h