Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1403090pxk; Fri, 25 Sep 2020 13:55:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylvAB2smooK9KvXE2OkdihQA/RG7nSxpKvGSaA1rrUpXV++LFl0sL/A8ok/x02EPnaYcHp X-Received: by 2002:a50:a693:: with SMTP id e19mr3280889edc.205.1601067358412; Fri, 25 Sep 2020 13:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601067358; cv=none; d=google.com; s=arc-20160816; b=n/QQO5kzRwbEXgf6VtZy1HdFoGdZP/XDAo+CH6D10FDetMLnaveqpE/eH9wk3Y0oSu /dS3ZlzAQIzxciZ376MsrBwb0IyWZ+K3RbEnEEu0k/TwQsqGsdkDmoplORjQD0vE3nU+ efikRTWXMgdC9Qp/Tl1zQvqk8uFpLizypuK6137kD9Y8zGPns54ICEOP5LRD6jFh4XCs pyzm70lVMg/vQLA6cV2l3dvs4XuXr+ZaBvO6zH2vo+SVtjjc3sySM49RF4UuXGeLOBLP Mq/tXsQ9bSC+NgWOLlqXBfvOkPVqBR28RkviXTm8njUU6usLktI9JG1lSW9CeDdznmEd BM/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature; bh=KE/6frUW0qLJ4yGqJjxsOBztcMMvJKPi7N6S9765s1A=; b=r/KO/NMBKDUvuN3243ZUCpY9y/R5hLsR8FewuzQ1WrO8wjnrMxEvuTbU9ZicGfHOWu KNrNw0nZLZYCxXrGTU5te6kqMOq6kuMEjlHlfnCaeDTAGdxR8jezHn9iyYtk3F7eoO0r QIx7mfGtWnvKXvDIHhBqVbgkLpK+DvirIlvc7tolvDA3rWb30voes2en9iAtUCuXNfSw acIeVFD9yKTKy8vLP9XH6nN724FFrkgzy5nSBMK9y5SAHA1CPE9jaqZ0hkr/6TvIJ0+W hBRAJhOwMOllaFlKRaNDXGTByqFl5wlD90NjZgtPp7/5sC11NOLmQfnn7PewLCU2sEwR kuwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=t0qzyxZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si2716931ede.8.2020.09.25.13.55.35; Fri, 25 Sep 2020 13:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=t0qzyxZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbgIYUyi (ORCPT + 99 others); Fri, 25 Sep 2020 16:54:38 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:44806 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725272AbgIYUyh (ORCPT ); Fri, 25 Sep 2020 16:54:37 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08PKn2cc039197; Fri, 25 Sep 2020 20:54:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : message-id : references : date : in-reply-to : mime-version : content-type; s=corp-2020-01-29; bh=KE/6frUW0qLJ4yGqJjxsOBztcMMvJKPi7N6S9765s1A=; b=t0qzyxZi0dl+YKzXtuDuHrMGqOKgH5fIMmpwIJWVMm/U3dTu+P1SS3kJTlx79mD5uwMC A2Edf31HXh7Zjrho5JXRQeOv1ImV1hVmEUYsbtNFLoJL4bYLIxAyhjP+J/0Zp7ifDQzk 3Nx9/VbQNAqiGj7LS7WXYR2mfogIVEGEDnYRbjzFJkRbq3WNPTTAj2pLS3zagmxoYMTV iw0TWXITzP/XF5OpedI74kVNFQzbK4Xkz4lunnpJPRW1Rg6Stg2474URqb04tp+XNqiJ CwLxCCi7uoZ8T0Vakvb3aUzZrxZh3Nt0KvQ9mrqnvOxELTIQV/CUCoVWCkaNPXyc2d99 Xw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 33ndnuysne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 25 Sep 2020 20:54:14 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08PKoEmv040658; Fri, 25 Sep 2020 20:54:13 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 33r28yufem-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Sep 2020 20:54:13 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08PKsBj6030876; Fri, 25 Sep 2020 20:54:11 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Sep 2020 13:54:10 -0700 To: Coly Li Cc: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, netdev@vger.kernel.org, open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Averin , Cong Wang , Mike Christie , Lee Duncan , Chris Leech , Christoph Hellwig , Hannes Reinecke Subject: Re: [PATCH v8 6/7] scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map() From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <20200925150119.112016-1-colyli@suse.de> <20200925150119.112016-7-colyli@suse.de> Date: Fri, 25 Sep 2020 16:54:07 -0400 In-Reply-To: <20200925150119.112016-7-colyli@suse.de> (Coly Li's message of "Fri, 25 Sep 2020 23:01:18 +0800") MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9755 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=845 suspectscore=1 adultscore=0 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009250150 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9755 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=1 bulkscore=0 clxscore=1011 impostorscore=0 mlxlogscore=827 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009250150 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Coly, > In iscsci driver, iscsi_tcp_segment_map() uses the following code to > check whether the page should or not be handled by sendpage: > if (!recv && page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg))) > > The "page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg)" part is to > make sure the page can be sent to network layer's zero copy path. This > part is exactly what sendpage_ok() does. > > This patch uses use sendpage_ok() in iscsi_tcp_segment_map() to replace > the original open coded checks. Looks fine to me. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering