projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df89bf
)
ceph: remove duplicated code in ceph_netfs_issue_read()
author
Xiubo Li
<xiubli@redhat.com>
Wed, 22 Nov 2023 07:55:14 +0000
(15:55 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 15 Jan 2024 14:40:51 +0000
(15:40 +0100)
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>
fs/ceph/addr.c
patch
|
blob
|
history
diff --git
a/fs/ceph/addr.c
b/fs/ceph/addr.c
index a5caafc1859ec7f864801a3554c9da33cea80ac7..792bbbf8de647d30e0c1501c1a3f7b4d9b96be0d 100644
(file)
--- 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;