Project

General

Profile

Feature #2952

librbd: use generic rados locking class

Added by Josh Durgin about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
08/15/2012
Due date:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Replace calls to cls_rbd's locking methods with calls to the generic lock class.


Related issues

Blocks rbd - Feature #2951: cls_rbd: remove locking methods Resolved 08/15/2012

Associated revisions

Revision 18427ecc (diff)
Added by Josh Durgin about 7 years ago

librbd: use generic cls_lock instead of cls_rbd's locking

Update the librbd locking api to make more sense: * Add an optional tag to shared locking * only make shared vs exclusive different functions in the user-visible api * return a list of structs instead of a set of pairs * fix incorrect range checking in the C api * rename locks to lockers to be consistent with the generic locking class * rename other_locker parameter to client, to match the list_lockers usage

Fixes: #2952
Signed-off-by: Josh Durgin <>

Revision 3a9e6650 (diff)
Added by Josh Durgin almost 7 years ago

librbd: use generic cls_lock instead of cls_rbd's locking

Update the librbd locking api to make more sense: * Add an optional tag to shared locking * only make shared vs exclusive different functions in the user-visible api * return a list of structs instead of a set of pairs * fix incorrect range checking in the C api * rename locks to lockers to be consistent with the generic locking class * rename other_locker parameter to client, to match the list_lockers usage

Fixes: #2952
Signed-off-by: Josh Durgin <>

History

#1 Updated by Josh Durgin about 7 years ago

  • translation missing: en.field_story_points set to 2

#2 Updated by Josh Durgin about 7 years ago

  • translation missing: en.field_position set to 1

#3 Updated by Sage Weil about 7 years ago

  • Target version set to v0.53a
  • translation missing: en.field_position deleted (8)
  • translation missing: en.field_position set to 8

#4 Updated by Josh Durgin about 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Josh Durgin

#5 Updated by Sage Weil about 7 years ago

  • Target version changed from v0.53a to v0.53b
  • translation missing: en.field_position deleted (11)
  • translation missing: en.field_position set to 2

#6 Updated by Josh Durgin about 7 years ago

  • Status changed from In Progress to Need Review

wip-librbd-locking

#7 Updated by Josh Durgin almost 7 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF