From 17bb1de58eddff8703edde30496555299bebe230 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Sun, 24 Sep 2023 16:10:55 -0400 Subject: [PATCH] LU-13814 lov: remove non-dio handling in lov_dio_submit lov_dio_submit is now specialized to dio. Cleanup accordingly. Test-Parameters: fortestonly Test-Parameters: forjanitoronly Signed-off-by: Patrick Farrell Change-Id: I4e293011c77eb1b7b8f2c0ec78565458a6fe047c --- lustre/lov/lov_io.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lustre/lov/lov_io.c b/lustre/lov/lov_io.c index f9c3419..61642e1 100644 --- a/lustre/lov/lov_io.c +++ b/lustre/lov/lov_io.c @@ -1295,8 +1295,6 @@ static int lov_dio_submit(const struct lu_env *env, struct cl_page *page; struct cl_page_list *qin; struct lov_io_sub *sub; - struct cl_page *tmp; - bool dio = false; int index; int rc = 0; ENTRY; @@ -1307,9 +1305,6 @@ static int lov_dio_submit(const struct lu_env *env, qin = &queue->c2_qin; page = cl_page_list_first(qin); - if (page->cp_type == CPT_TRANSIENT) - dio = true; - cl_page_list_init(plist); while (qin->pl_nr > 0) { struct cl_2queue *cl2q = &lov_env_info(env)->lti_cl2q; @@ -1333,17 +1328,7 @@ static int lov_dio_submit(const struct lu_env *env, index = page->cp_lov_index; /* DIO is already split by stripe */ - if (!dio) { - cl_page_list_for_each_safe(page, tmp, qin) { - /* this page is not on this stripe */ - if (index != page->cp_lov_index) - continue; - - cl_page_list_move(&cl2q->c2_qin, qin, page); - } - } else { - cl_page_list_splice(qin, &cl2q->c2_qin); - } + cl_page_list_splice(qin, &cl2q->c2_qin); sub = lov_sub_get(env, lio, index); if (!IS_ERR(sub)) { -- 1.8.3.1