]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: don't time out osd requests that haven't been received
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:27:24 +0000 (11:27 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:27:24 +0000 (11:27 -0700)
commit7d94b673bb44c91aa6f20aee34d12482a55b5c3b
tree419e162dfb25e69ef1a89c56a318ad322cf21053
parent526a866acebdaf624bf0193aab596823dffcfd50
libceph: don't time out osd requests that haven't been received

Keep track of when an outgoing message is ACKed (i.e., the server fully
received it and, presumably, queued it for processing).  Time out OSD
requests only if it's been too long since they've been received.

This prevents timeouts and connection thrashing when the OSDs are simply
busy and are throttling the requests they read off the network.

Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
include/linux/ceph/messenger.h
net/ceph/messenger.c
net/ceph/osd_client.c