diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-02-12 19:11:07 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-03-07 16:30:38 +0300 |
commit | 7cc5e38f2f0b0b58a22a4c18a56348dd99a71270 (patch) | |
tree | b96359d499e8f222f64532f9722a18678ca6d4b5 /include/linux/ceph/osd_client.h | |
parent | 8767b293a4ab6632f9288f34bcf2ab9ba20dca3a (diff) | |
download | linux-7cc5e38f2f0b0b58a22a4c18a56348dd99a71270.tar.xz |
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>
Diffstat (limited to 'include/linux/ceph/osd_client.h')
-rw-r--r-- | include/linux/ceph/osd_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 2ea0c282f3dc..c125b5d9e13c 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h @@ -189,6 +189,7 @@ struct ceph_osd_request { /* internal */ unsigned long r_stamp; /* jiffies, send or check time */ + unsigned long r_start_stamp; /* jiffies */ int r_attempts; struct ceph_eversion r_replay_version; /* aka reassert_version */ u32 r_last_force_resend; |