diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2020-05-23 12:47:33 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-06-01 14:22:53 +0300 |
commit | 8ad44d5e0d1eda7e4a0ed382174888476dc81789 (patch) | |
tree | 5b689315243f7a3e17ba623464da95bade93c732 /include/linux/ceph/libceph.h | |
parent | 117d96a04f007ce8fc2e292369056c3bd09f6f63 (diff) | |
download | linux-8ad44d5e0d1eda7e4a0ed382174888476dc81789.tar.xz |
libceph: read_from_replica option
Expose replica reads through read_from_replica=balance and
read_from_replica=localize. The default is to read from primary
(read_from_replica=no).
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'include/linux/ceph/libceph.h')
-rw-r--r-- | include/linux/ceph/libceph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 4733959f1ec7..2247e71beb83 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h @@ -53,6 +53,8 @@ struct ceph_options { unsigned long osd_keepalive_timeout; /* jiffies */ unsigned long osd_request_timeout; /* jiffies */ + u32 osd_req_flags; /* CEPH_OSD_FLAG_*, applied to each OSD request */ + /* * any type that can't be simply compared or doesn't need * to be compared should go beyond this point, |