]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: request exclusive lock if current owner cannot execute op 10784/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 28 Jul 2016 19:09:53 +0000 (15:09 -0400)
committerLoic Dachary <ldachary@redhat.com>
Fri, 19 Aug 2016 05:30:28 +0000 (07:30 +0200)
commite6ac214f8a6d8773de032c83f5fdd7c65b68d53f
tree189c6ee5b3604a002ab4cd7238e8a87c39efe7b7
parentb98e27c42f29f4fa44cbe7f4b7d9ab3633404f0c
librbd: request exclusive lock if current owner cannot execute op

The initial krbd implementation will not support executing maintenance
ops and instead will return -EOPNOTSUPP. In this case, librbd can take
the lock and execute the operation.

Fixes: http://tracker.ceph.com/issues/16171
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d2d2d90d64663905c2b81f7809f1d636db6b7fb1)
src/librbd/Operations.cc