Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp146580ybg; Tue, 9 Jun 2020 19:08:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7o7zDULNq7XJDtG2MzQP7plRttJsd+dY/1Pv+7TGD1AgRJjLKOQgFMbW8RCrE1pfQBPgh X-Received: by 2002:aa7:c986:: with SMTP id c6mr573367edt.335.1591754883590; Tue, 09 Jun 2020 19:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591754883; cv=none; d=google.com; s=arc-20160816; b=0GsoGhLF3CESzNpLgb8Lxf3OmfnS+ZzcPQ1wzeqijAlX0PjMkoM4gg/FXJ833kbSj6 lZSX5MKVRl3Pw7I1e1Yik0v39aZazYPvjpaSHFkMHcOxxzGAFZ4T6RGXseRbAP1v01TA uQtPld3TPNZyIuS0h9Ci5O0Nr1S+yxvQ3a3hw2TS1zDj6W9dma9ZAieV5852Vi88NDez r+5SNXBWGkU1speYKPdGA3ta3hbPa3+IQfwo9ApyQkxowz8Pnw7PIDpCkoOSlxvOW2ei So/tsIYqNdOCpmbLqL/J0aC9TV5fzn76hpW4fRifKDSLahrINqo/QJoOA2DANHAgxyQ+ DviA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dSw6VD4ccftkyiGjKSAk9ahdFOogWISNnBWZ+0yirrE=; b=hqYAXz43S62vk+jnlsF3aFJNtHcl8Q1YfpU/sUsFx1c/ffRbo15YXYRUF1u600SWj8 FxWRrTTcSgsz0ugEHCZY9U4o9gDcUnf7uy6ZUdwG/wJLx2mUSC0zmQIK/U6nDzs4OMuu uqo7c16aToeKTmdtmg2/1Dv+grpuHQHCM4waeukm3aXVqtxpAzX3cC2Aw+s3bXUjiI+y CUOLxbK7zvoLaFaUrr1K34y0nBqWKyfxTou1RpDdGEAfUYaOVK7rfL0i0ucT6mpfrp4Q C20GeniKdIzr6h/JEsPSqrK0CnA/38nn+KsvUGHxMfpIWM/o9Gw5rPbNOrbtXYMZSzy1 a9Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=sCraUaIg; 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 re5si9012706ejb.96.2020.06.09.19.07.41; Tue, 09 Jun 2020 19:08:03 -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=sCraUaIg; 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 S1726164AbgFJCFO (ORCPT + 99 others); Tue, 9 Jun 2020 22:05:14 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:42990 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbgFJCFN (ORCPT ); Tue, 9 Jun 2020 22:05:13 -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 05A23J7G103799; Wed, 10 Jun 2020 02:04:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=dSw6VD4ccftkyiGjKSAk9ahdFOogWISNnBWZ+0yirrE=; b=sCraUaIgndjTRgcAc16lB/t3KbwrIo7pBiI2jhgkzwm5K4LvCe+iWT4Ji2AiMtWEsYNn VpQiHwtl12cGzn5aZsckkp6Eo8e4fnZ/3bCs4GCUv1ZhApv6VKDrO4BKfzhaB4jPghE9 l1bxwyRLntrZ6nAI4oX7lT11D9fSq2VBakgOH7EoVWSG5xAl+VQP3SAULlZt06NaB4qf N8U8oXN7tVeD3qez/rPoRGT5F+oovZeAol3FuiHPsLnm6tBC4WnXjZi/8Cd7zz6muxjS QN2miwAyE5X/WGfNU3/Ho7b/8639YYqqqRj/oS6qC86I2ZqmFULFIRloiVeLlkDyuQ1r 5w== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 31g3smyr7b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Jun 2020 02:04:56 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05A1wQaw021147; Wed, 10 Jun 2020 02:02:56 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 31gmwsbnba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Jun 2020 02:02:55 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 05A22siB004457; Wed, 10 Jun 2020 02:02:54 GMT Received: from ca-mkp.ca.oracle.com (/10.156.108.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 09 Jun 2020 19:02:53 -0700 From: "Martin K. Petersen" To: LKML , John Hubbard Cc: "Martin K . Petersen" , "James E . J . Bottomley" , =?UTF-8?q?Kai=20M=C3=A4kisara?= , Souptick Joarder , Bart Van Assche , linux-scsi@vger.kernel.org Subject: Re: [PATCH v2] scsi: st: convert convert get_user_pages() --> pin_user_pages() Date: Tue, 9 Jun 2020 22:02:46 -0400 Message-Id: <159175452257.16072.5442381093042665048.b4-ty@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526182709.99599-1-jhubbard@nvidia.com> References: <20200526182709.99599-1-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9647 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006100013 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9647 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 cotscore=-2147483648 suspectscore=0 spamscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxscore=0 mlxlogscore=999 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006100013 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 May 2020 11:27:09 -0700, John Hubbard wrote: > This code was using get_user_pages*(), in a "Case 1" scenario > (Direct IO), using the categorization from [1]. That means that it's > time to convert the get_user_pages*() + put_page() calls to > pin_user_pages*() + unpin_user_pages() calls. > > There is some helpful background in [2]: basically, this is a small > part of fixing a long-standing disconnect between pinning pages, and > file systems' use of those pages. > > [...] Applied to 5.8/scsi-queue, thanks! [1/1] scsi: st: Convert convert get_user_pages() --> pin_user_pages() https://git.kernel.org/mkp/scsi/c/08e9cbe75fac -- Martin K. Petersen Oracle Linux Engineering