rbd: support for exclusive-lock feature
authorIlya Dryomov <idryomov@gmail.com>
Fri, 12 Aug 2016 14:40:02 +0000 (16:40 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 24 Aug 2016 21:49:16 +0000 (23:49 +0200)
commited95b21a4b0a71ef89306cdeb427d53cc9cb343f
tree3a8ff6e713df797980ffc5df4411625a0f4a0f36
parent99d1694310df3ffef66902f5bc1a23e95a724aa3
rbd: support for exclusive-lock feature

Add basic support for RBD_FEATURE_EXCLUSIVE_LOCK feature.  Maintenance
operations (resize, snapshot create, etc) are offloaded to librbd via
returning -EOPNOTSUPP - librbd should request the lock and execute the
operation.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Tested-by: Mike Christie <mchristi@redhat.com>
drivers/block/rbd.c
drivers/block/rbd_types.h
net/ceph/ceph_strings.c