Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp125365ybg; Tue, 2 Jun 2020 18:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE4F1UY2fu4FhJuBc3t+sqje5qadbuB92RMcw+sjpfQSXjJ4yCst6v14UnkQj5wuCCVOsL X-Received: by 2002:a17:906:8699:: with SMTP id g25mr22453284ejx.217.1591148058551; Tue, 02 Jun 2020 18:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591148058; cv=none; d=google.com; s=arc-20160816; b=v2VTQQ/5kbLMGujKHCuGUHcd7K1/2zTJIITYZruIayQYepArlCNTQw8LU55EdgRMfB vEPDsVcksKk/SZ8d5Hpe8ePJ7PB80VBnVRKtBHx7248KIOyIrO2p2qgmHrhua+G4VV17 rbkSbIW69a/2nqxamH6vAEvviJfJSlgQ4wm3s/zBwKnoMi79wHOtyq8mcLGJKFrLCMUb 9dTFESukEgdfhsr7XJ5We6RBjSpDbNZ5XR0fQdlwNC18UL2OG0RzLf+J6ISdYNbT2pTS whHVR1pBRuxxO8p+G7+kTQBQ4RXOJtPA0pM6+UnwruZPQ9uaJdZTnHjX8GHDLBTqnbbR otIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature; bh=vXx55ivSFag0AtdoTsVakOCgzcXQe7hrRoJVFEGMHIo=; b=LUYjUeDelMNtEHMnyQ1uck13Nrh8I0vEYROZ2jg+mVajDfnYuEnmaV1U3dtmy8yuaM 0UAgSntDrRSgQuvNlA3qi7X/Am1Uy6YD7/UlwwXkLA8k7SEaVJieSjJBN0slQ2UoZGeF 5X6odQuDZ3fibylFjnrccx6VFOn9UtRUfuL1eSxvVF/hRQG/felv0ljQU6g6I1c8mDLB vNCCtsh8IezYI6UYEv5h7NLRois0GKY3+ljNRLX35Bi3T7ESHZ5xxqYs5/2Ung0i7mX3 OjY1IrY5A+t5lyLLokxmtgHWpw7GgqlQiDA7sYFxH5ogYJj2i8SbEyyZQb60N3N5AswB XKrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=R03uG6E8; 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 c7si271378edv.93.2020.06.02.18.33.54; Tue, 02 Jun 2020 18:34:18 -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=R03uG6E8; 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 S1728280AbgFCB3b (ORCPT + 99 others); Tue, 2 Jun 2020 21:29:31 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36040 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgFCB3a (ORCPT ); Tue, 2 Jun 2020 21:29:30 -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 0531S5FO096333; Wed, 3 Jun 2020 01:29: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=vXx55ivSFag0AtdoTsVakOCgzcXQe7hrRoJVFEGMHIo=; b=R03uG6E8j6wAMohVd1HfV0ayys5VKj+s4OHVrUHwHA7nPdAhTEhpru7elhY501z3JFbi 6sQLlyupE/IzoV9XwDTup5Gpz45HRf9PS6yRwnp0fWcf2c5jykXKyoxoxc6CcZNRP4l4 AkhYJAfRKoBFwpoHSAdk1z8BjwvVhRuiOSwiH9oV7cVyUlPofR9A3jVbbIxpiI8famvp W90+bS21C5eEMUx3pbt8YusKpY/y0/y5q9x2MFVnzDwDIhOKBLkB8hUk87Sz4OsrCwZU rOBTFuSlaEH2rG/TbOJuyJEBslO2GrEL0TazecdHSEVgIo70JwGgdbP7m7hYPH8j+Czq Rw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 31dkrukrpc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 03 Jun 2020 01:29: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 0531RwM4057888; Wed, 3 Jun 2020 01:29:14 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 31c25qjnpm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Jun 2020 01:29:14 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0531TCTF029562; Wed, 3 Jun 2020 01:29:12 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 02 Jun 2020 18:29:12 -0700 To: =?utf-8?Q?Kai_M=C3=A4kisara_=28Kolumbus=29?= Cc: LKML , Souptick Joarder , Bart Van Assche , "James E . J . Bottomley" , "Martin K . Petersen" , , John Hubbard Subject: Re: [PATCH v2] scsi: st: convert convert get_user_pages() --> pin_user_pages() From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <20200526182709.99599-1-jhubbard@nvidia.com> Date: Tue, 02 Jun 2020 21:29:09 -0400 In-Reply-To: <20200526182709.99599-1-jhubbard@nvidia.com> (John Hubbard's message of "Tue, 26 May 2020 11:27:09 -0700") MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9640 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=1 spamscore=0 malwarescore=0 bulkscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006030008 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9640 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 suspectscore=1 malwarescore=0 clxscore=1015 adultscore=0 mlxlogscore=999 cotscore=-2147483648 phishscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006030008 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. Kai: Please review. Thanks! -- Martin K. Petersen Oracle Linux Engineering