WSL2-Linux-Kernel/include/linux/ceph
Ilya Dryomov 22d2cfdffa libceph: move away from global osd_req_flags
osd_req_flags is overly general and doesn't suit its only user
(read_from_replica option) well:

- applying osd_req_flags in account_request() affects all OSD
  requests, including linger (i.e. watch and notify).  However,
  linger requests should always go to the primary even though
  some of them are reads (e.g. notify has side effects but it
  is a read because it doesn't result in mutation on the OSDs).

- calls to class methods that are reads are allowed to go to
  the replica, but most such calls issued for "rbd map" and/or
  exclusive lock transitions are requested to be resent to the
  primary via EAGAIN, doubling the latency.

Get rid of global osd_req_flags and set read_from_replica flag
only on specific OSD requests instead.

Fixes: 8ad44d5e0d ("libceph: read_from_replica option")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
2020-06-16 16:01:53 +02:00
..
auth.h
buffer.h libceph: allow ceph_buffer_put() to receive a NULL ceph_buffer 2019-08-22 10:47:41 +02:00
ceph_debug.h
ceph_features.h libceph: turn on CEPH_FEATURE_MSG_ADDR2 2019-07-08 14:01:43 +02:00
ceph_frag.h
ceph_fs.h ceph: consider inode's last read/write when calculating wanted caps 2020-03-30 12:42:42 +02:00
ceph_hash.h
cls_lock_client.h rbd: support for object-map and fast-diff 2019-07-08 14:01:45 +02:00
debugfs.h libceph: drop CEPH_DEFINE_SHOW_FUNC 2020-03-30 12:42:40 +02:00
decode.h libceph: rename ceph_encode_addr to ceph_encode_banner_addr 2019-07-08 14:01:43 +02:00
libceph.h libceph: move away from global osd_req_flags 2020-06-16 16:01:53 +02:00
mdsmap.h ceph: add possible_max_rank and make the code more readable 2020-01-27 16:53:40 +01:00
messenger.h libceph: fix alloc_msg_with_page_vector() memory leaks 2020-03-23 13:07:08 +01:00
mon_client.h libceph, rbd: replace zero-length array with flexible-array 2020-06-01 13:22:53 +02:00
msgpool.h
msgr.h
osd_client.h libceph: support for alloc hint flags 2020-06-01 23:32:35 +02:00
osdmap.h libceph: support for balanced and localized reads 2020-06-01 13:22:53 +02:00
pagelist.h
rados.h libceph: support for alloc hint flags 2020-06-01 23:32:35 +02:00
string_table.h
striper.h rbd: support for object-map and fast-diff 2019-07-08 14:01:45 +02:00
types.h