From a75f1a90611038ea097912384413813e8d350290 Mon Sep 17 00:00:00 2001 From: Alexey Lyashkov Date: Mon, 8 Nov 2021 09:36:08 +0300 Subject: [PATCH 1/1] LU-15189 osc: don't have extra nvidia call osc don't needs to call nvidia to check an GPU page, this is in the oap_flags Signed-off-by: Alexey Lyashkov Change-Id: I124c328838ad9823361afef33d0732fa4ebbb696 Reviewed-on: https://review.whamcloud.com/45481 Reviewed-by: Andrew Perepechko Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/osc/osc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 0d34360..b239a91 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1574,7 +1574,7 @@ retry_encrypt: } } - if (lnet_is_rdma_only_page(pga[0]->pg)) { + if (brw_page2oap(pga[0])->oap_brw_flags & OBD_BRW_RDMA_ONLY) { enable_checksum = false; short_io_size = 0; } -- 1.8.3.1