Whamcloud - gitweb
LU-15189 osc: don't have extra nvidia call 81/45481/5
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Mon, 8 Nov 2021 06:36:08 +0000 (09:36 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 21:58:48 +0000 (21:58 +0000)
osc don't needs to call nvidia to check an GPU page,
this is in the oap_flags

Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I124c328838ad9823361afef33d0732fa4ebbb696
Reviewed-on: https://review.whamcloud.com/45481
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_request.c

index 0d34360..b239a91 100644 (file)
@@ -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;
        }