From: Alexey Lyashkov Date: Mon, 8 Nov 2021 06:36:08 +0000 (+0300) Subject: LU-15189 osc: don't have extra nvidia call X-Git-Tag: 2.14.57~79 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a75f1a90611038ea097912384413813e8d350290 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 --- 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; }