aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2017-04-13 06:17:38 -0400
committerIlya Dryomov <idryomov@gmail.com>2017-05-04 03:19:23 -0400
commit14bb211d324d6c8140167bd6b2b8a80757348a2f (patch)
treeaafb98077b59c9a8488b2e15082099fec2ce9a9d /include/linux/ceph
parentcbbfb0ff115159847121afe9c7553bd5c86f6062 (diff)
rbd: support updating the lock cookie without releasing the lock
As we no longer release the lock before potentially raising BLACKLISTED in rbd_reregister_watch(), the "either locked or blacklisted" assert in rbd_queue_workfn() needs to go: we can be both locked and blacklisted at that point now. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/cls_lock_client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ceph/cls_lock_client.h b/include/linux/ceph/cls_lock_client.h
index 84884d8d4710..0594d3bba774 100644
--- a/include/linux/ceph/cls_lock_client.h
+++ b/include/linux/ceph/cls_lock_client.h
@@ -37,6 +37,11 @@ int ceph_cls_break_lock(struct ceph_osd_client *osdc,
37 struct ceph_object_locator *oloc, 37 struct ceph_object_locator *oloc,
38 char *lock_name, char *cookie, 38 char *lock_name, char *cookie,
39 struct ceph_entity_name *locker); 39 struct ceph_entity_name *locker);
40int ceph_cls_set_cookie(struct ceph_osd_client *osdc,
41 struct ceph_object_id *oid,
42 struct ceph_object_locator *oloc,
43 char *lock_name, u8 type, char *old_cookie,
44 char *tag, char *new_cookie);
40 45
41void ceph_free_lockers(struct ceph_locker *lockers, u32 num_lockers); 46void ceph_free_lockers(struct ceph_locker *lockers, u32 num_lockers);
42 47