diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-11-08 15:15:24 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-11-10 20:13:08 +0100 |
commit | 264048afab27d7c27eedf5394714e0b396d787f7 (patch) | |
tree | fd41d2587eaddd4edeb7dd805445abaf629622ae /include | |
parent | 3890dce1d3a8b9fe3bc36de99496792e468cd079 (diff) | |
download | linux-264048afab27d7c27eedf5394714e0b396d787f7.tar.bz2 |
libceph: initialize last_linger_id with a large integer
osdc->last_linger_id is a counter for lreq->linger_id, which is used
for watch cookies. Starting with a large integer should ease the task
of telling apart kernel and userspace clients.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ceph/osd_client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 96337b15a60d..a8e66344bacc 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h @@ -258,6 +258,8 @@ struct ceph_watch_item { struct ceph_entity_addr addr; }; +#define CEPH_LINGER_ID_START 0xffff000000000000ULL + struct ceph_osd_client { struct ceph_client *client; |