]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd: recognize lock_on_read option
authorIlya Dryomov <idryomov@gmail.com>
Mon, 3 Oct 2016 12:09:11 +0000 (14:09 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2016 17:50:32 +0000 (19:50 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
doc/man/8/rbd.rst
src/tools/rbd/action/Kernel.cc

index 904cafb277032e30b5fb1edd71cf806aa6ca836c..3ceefc4d3ff9a6fda9ad726221c959592660bffc 100644 (file)
@@ -474,6 +474,9 @@ Mapping (per block device) options:
 
 * queue_depth=x - queue depth (since 4.2, default is 128 requests).
 
+* lock_on_read - Acquire exclusive lock on reads, in addition to writes and
+  discards (since 4.9).
+
 
 Examples
 ========
index 9b9400714c1c2670d0fb2f49508266271689e870..05430bae109af2e456517010cdda333242068088 100644 (file)
@@ -129,6 +129,8 @@ static int parse_map_options(char *options)
     } else if (!strcmp(this_char, "queue_depth")) {
       if (put_map_option_value("queue_depth", value_char, map_option_int_cb))
         return -EINVAL;
+    } else if (!strcmp(this_char, "lock_on_read")) {
+      put_map_option("lock_on_read", this_char);
     } else {
       std::cerr << "rbd: unknown map option '" << this_char << "'" << std::endl;
       return -EINVAL;