Skip to content

Commit b36b033

Browse files
lxbszidryomov
authored andcommitted
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>
1 parent 6df89bf commit b36b033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ceph/addr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ static void ceph_netfs_issue_read(struct netfs_io_subrequest *subreq)
371371

372372
req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino,
373373
off, &len, 0, 1, sparse ? CEPH_OSD_OP_SPARSE_READ : CEPH_OSD_OP_READ,
374-
CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica,
375-
NULL, ci->i_truncate_seq, ci->i_truncate_size, false);
374+
CEPH_OSD_FLAG_READ, NULL, ci->i_truncate_seq,
375+
ci->i_truncate_size, false);
376376
if (IS_ERR(req)) {
377377
err = PTR_ERR(req);
378378
req = NULL;

0 commit comments

Comments
 (0)