diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2020-06-04 11:12:34 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-06-16 16:01:53 +0200 |
commit | 22d2cfdffa5bff3566e16cb7320e13ceb814674b (patch) | |
tree | 46af02e13d487babdca4b26486a04d7786a465a0 /ipc | |
parent | Linux 5.8-rc1 (diff) | |
download | linux-22d2cfdffa5bff3566e16cb7320e13ceb814674b.tar.xz linux-22d2cfdffa5bff3566e16cb7320e13ceb814674b.zip |
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: 8ad44d5e0d1e ("libceph: read_from_replica option")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions