summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2023-11-22 08:55:14 +0100
committerIlya Dryomov <idryomov@gmail.com>2024-01-15 15:40:51 +0100
commitb36b03344f5fccb81e5cf3b3ede68b7e7a7e930a (patch)
tree5ac851b86b9cefef3e126b98792a8e29ebdac7f0 /fs
parentceph: send oldest_client_tid when renewing caps (diff)
downloadlinux-b36b03344f5fccb81e5cf3b3ede68b7e7a7e930a.tar.xz
linux-b36b03344f5fccb81e5cf3b3ede68b7e7a7e930a.zip
ceph: remove duplicated code in ceph_netfs_issue_read()
When allocating an osd request the libceph.ko will add the 'read_from_replica' flag by default. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/addr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index a5caafc1859e..792bbbf8de64 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -371,8 +371,8 @@ static void ceph_netfs_issue_read(struct netfs_io_subrequest *subreq)
req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino,
off, &len, 0, 1, sparse ? CEPH_OSD_OP_SPARSE_READ : CEPH_OSD_OP_READ,
- CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica,
- NULL, ci->i_truncate_seq, ci->i_truncate_size, false);
+ CEPH_OSD_FLAG_READ, NULL, ci->i_truncate_seq,
+ ci->i_truncate_size, false);
if (IS_ERR(req)) {
err = PTR_ERR(req);
req = NULL;