libceph: osd_request_timeout option
authorIlya Dryomov <idryomov@gmail.com>
Sun, 12 Feb 2017 16:11:07 +0000 (17:11 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 Mar 2017 13:30:38 +0000 (14:30 +0100)
commit7cc5e38f2f0b0b58a22a4c18a56348dd99a71270
treeb96359d499e8f222f64532f9722a18678ca6d4b5
parent8767b293a4ab6632f9288f34bcf2ab9ba20dca3a
libceph: osd_request_timeout option

osd_request_timeout specifies how many seconds to wait for a response
from OSDs before returning -ETIMEDOUT from an OSD request.  0 (default)
means no limit.

osd_request_timeout is osdkeepalive-precise -- in-flight requests are
swept through every osdkeepalive seconds.  With ack vs commit behaviour
gone, abort_request() is really simple.

This is based on a patch from Artur Molchanov <artur.molchanov@synesis.ru>.

Tested-by: Artur Molchanov <artur.molchanov@synesis.ru>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
include/linux/ceph/libceph.h
include/linux/ceph/osd_client.h
net/ceph/ceph_common.c
net/ceph/osd_client.c