diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 10:07:27 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 19:15:28 -0400 |
| commit | b07d3c4bd7270c74e2b6803af8ac8a00cb3e5ed2 (patch) | |
| tree | fcaa24cff4389ab2f0e7b2d2ca327fb76bdef6a7 /include | |
| parent | 1907920324f1f3ebb6618344417c03a2863bba01 (diff) | |
libceph: support for checking on status of watch
Implement ceph_osdc_watch_check() to be able to check on status of
watch. Note that the time it takes for a watch/notify event to get
delivered through the notify_wq is taken into account.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ceph/osd_client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 63054fae4f15..2ae7cfd82ec9 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
| @@ -213,6 +213,8 @@ struct ceph_osd_linger_request { | |||
| 213 | struct ceph_osd_request *reg_req; | 213 | struct ceph_osd_request *reg_req; |
| 214 | struct ceph_osd_request *ping_req; | 214 | struct ceph_osd_request *ping_req; |
| 215 | unsigned long ping_sent; | 215 | unsigned long ping_sent; |
| 216 | unsigned long watch_valid_thru; | ||
| 217 | struct list_head pending_lworks; | ||
| 216 | 218 | ||
| 217 | struct ceph_osd_request_target t; | 219 | struct ceph_osd_request_target t; |
| 218 | u32 last_force_resend; | 220 | u32 last_force_resend; |
| @@ -417,5 +419,7 @@ int ceph_osdc_notify(struct ceph_osd_client *osdc, | |||
| 417 | u32 timeout, | 419 | u32 timeout, |
| 418 | struct page ***preply_pages, | 420 | struct page ***preply_pages, |
| 419 | size_t *preply_len); | 421 | size_t *preply_len); |
| 422 | int ceph_osdc_watch_check(struct ceph_osd_client *osdc, | ||
| 423 | struct ceph_osd_linger_request *lreq); | ||
| 420 | #endif | 424 | #endif |
| 421 | 425 | ||
